multi_axis_plot [message #93724] |
Mon, 10 October 2016 01:45  |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
Hello all,
I am trying to plot multiple plots in one window. I am following:
cgerase & multiplot, [4,3], /square, gap=0.1, mXtitle='R', mYtitle='F(R)'
for i=0,4*3-1 do begin
cgplot, struct[i].x, struct[i].y, psym=4
multiplot
endfor
multiplot,/reset
steps of multiplot.pro
What it is doing it is giving me xais of only last plot. I want to plot xaxis label of each plot separately in that window.
I did set /doxaxis but its showing x label on only first and second plots.
Any help ????
|
|
|
Re: multi_axis_plot [message #93725 is a reply to message #93724] |
Mon, 10 October 2016 01:56  |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
By the way my original code is:
cgerase & multiplot, [1,5] ,mXtitle='Wavelength', mYtitle='Flux',ygap=0.02,/doxaxis;,mtitle='Spectrum'
for i=0,n_elements(fname)-1 do begin
cgplot, wave, flux, yrange=[yr1,yr2]
multiplot
endfor
multiplot,/reset
Its showing wavelength axis only for 1st and last plot in one window. However for rest 3 plots its not showing wavelength(x) axis.
|
|
|