comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » multi_axis_plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
multi_axis_plot [message #93724] Mon, 10 October 2016 01:45 Go to next message
Sapna Mishra is currently offline  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 Go to previous message
Sapna Mishra is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Will IDL on a disk image run on a new computer?
Next Topic: IDL intro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:19:17 PDT 2025

Total time taken to generate the page: 0.00455 seconds