- #1
agalya
- 9
- 0
i have written a program to plot dst index values using fortran + pgplot, read the input as formatted input
when I'm trying to plot the data points are not plotted correctly.
k = 0
do i = isdt, iedt --------------start date to end date
do j = 1,24
k = k+1
x_val1(j) = x_val(i,j) ---------------------(a)
dst_val1(j) = dst_val(i,j) ----------------(b)
call pgdraw(x_val1(j),dst_val1(j))
enddo
c call pgline(k, x_val1,dst_val1)
c call pgpoint(k-1, x_val1,dst_val1,17)
write(*,'(f11.3,2x,i5)')(x_val1(j),dst_val1(j),j = 1,24) -------------------(c)
enddo
this is the routine to plot, in a & b I am converting the 2d array to 1d array which I am using to plot.
when i try to plot them it is not coming properly, but when I am trying to write the samething (in c), it is writing properly (formatted output). can somebody please help me to solve this problem
when I'm trying to plot the data points are not plotted correctly.
k = 0
do i = isdt, iedt --------------start date to end date
do j = 1,24
k = k+1
x_val1(j) = x_val(i,j) ---------------------(a)
dst_val1(j) = dst_val(i,j) ----------------(b)
call pgdraw(x_val1(j),dst_val1(j))
enddo
c call pgline(k, x_val1,dst_val1)
c call pgpoint(k-1, x_val1,dst_val1,17)
write(*,'(f11.3,2x,i5)')(x_val1(j),dst_val1(j),j = 1,24) -------------------(c)
enddo
this is the routine to plot, in a & b I am converting the 2d array to 1d array which I am using to plot.
when i try to plot them it is not coming properly, but when I am trying to write the samething (in c), it is writing properly (formatted output). can somebody please help me to solve this problem