Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/best.f
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ program best
& xval(mg), yval(mg), gridmin, gridmax, deltax, deltay,
& xx, yy, fcentre, chbandw,zval(mg)

real :: x1(1), y1(1)

integer trid(mc),cidx(mc),i,j,k,l,sidx(mc),nids(mc),ndm
integer narg,iargc,fld(mc),nsus,nf,mode,ix,iy,gidx,iz,bb

Expand Down Expand Up @@ -788,7 +790,9 @@ program best
call pgpoint(ndm,x,y,17)
else if (mode.eq.4.or.mode.eq.5) then
call pggray(grid,mg,mg,1,ngx,1,ngy,gridmax,gridmin,tr)
call pgpoint(1,xx,yy,27)
x1(1) = xx
y1(1) = yy
call pgpoint(1,x1,y1,27)
call pgsls(4)
call pgmove(xmin,0.0)
call pgdraw(xmax,0.0)
Expand Down
17 changes: 9 additions & 8 deletions src/quickplot.f
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ subroutine quickgrey(dat,nxd,nyd,nx,ny,flip)
parameter(nsym=10)
integer*4 ksym(nsym)
real*4 dat(nxd,nyd)
real x1(1), y1(1)
data ksym/1,20,21,2,3,14,15,17,16,18/

s=0.
Expand Down Expand Up @@ -490,14 +491,14 @@ subroutine quickgrey(dat,nxd,nyd,nx,ny,flip)
call pgwindow(1.0,real(nx),0.0,real(ny+1))
endif
do j=1,ny
do i=1,nx
k=min(int((dat(i,j)-s)/rms),nsym)
if(k.gt.0)then
x=i
y=j
call pgpoint(1,x,y,ksym(k))
endif
enddo
do i=1,nx
k = min(int((dat(i,j)-s)/rms), nsym)
if (k .gt. 0) then
x1(1) = i
y1(1) = j
call pgpoint(1, x1, y1, ksym(k))
endif
enddo
enddo

return
Expand Down