Skip to content

Commit 7f33d15

Browse files
committed
added a wireframe test (see #40)
1 parent 3c3bc40 commit 7f33d15

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test.f90

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ program test
104104
call plt%add_imshow(mat,xlim=[0.0_wp, 100.0_wp],ylim=[0.0_wp, 100.0_wp],istat=istat)
105105
call plt%savefig('imshow.png', pyfile='imshow.py',istat=istat)
106106

107+
!wireframe plot:
108+
call plt%initialize(grid=.true.,xlabel='x angle (rad)',&
109+
ylabel='y angle (rad)',figsize=[10,10],&
110+
title='Wireframe plot test', real_fmt='*',&
111+
axisbelow=.false.,mplot3d=.true.,use_numpy=.true.)
112+
call plt%plot_wireframe(x, y, z, label='', linestyle='-', &
113+
cmap='bone', colorbar=.true.,&
114+
istat=istat)
115+
call plt%savefig('wireframe.png', pyfile='wireframe.py',istat=istat)
116+
107117
!histogram chart:
108118
x = [0.194,0.501,-1.241,1.425,-2.217,-0.342,-0.979,0.909,0.994,0.101, &
109119
-0.131,-0.627,0.463,1.404,0.036,-2.000,0.109,1.250,-1.035,-1.115, &

0 commit comments

Comments
 (0)