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

Home » Public Forums » archive » Multiple xaxis labels
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
Multiple xaxis labels [message #58412] Mon, 28 January 2008 08:49 Go to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
IDLers,

OK, so I have not found the good solution for making multiple labels
on an axis. The example I am trying to emulate is:
http://sprg.ssl.berkeley.edu/fast/sumplotProg/sumplotsLink/o rbit_links/2008/46118/2008_01_24/fa_k0_ees_46118_is.gif

It seems that I cant figure out how to:
- put them in the right place with xyouts
- line them up nicely
- make sure they are in the right place

Has anyone done this with good success?

I know how with separate axes like: http://www.dfanning.com/graphics_tips/wavenumber.html
but on the same axis has got me more boggled.


Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
Re: Multiple xaxis labels [message #84329 is a reply to message #58412] Mon, 13 May 2013 13:47 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
On Monday, January 28, 2008 11:49:41 AM UTC-5, Brian Larsen wrote:
> IDLers,
>
> OK, so I have not found the good solution for making multiple labels
> on an axis. The example I am trying to emulate is:
> http://sprg.ssl.berkeley.edu/fast/sumplotProg/sumplotsLink/o rbit_links/2008/46118/2008_01_24/fa_k0_ees_46118_is.gif
>
> It seems that I cant figure out how to:
> - put them in the right place with xyouts
> - line them up nicely
> - make sure they are in the right place
>
> Has anyone done this with good success?
>
> I know how with separate axes like: http://www.dfanning.com/graphics_tips/wavenumber.html
> but on the same axis has got me more boggled.
>
>
> Cheers,
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physics

So, after forming my question and poking around the interent, I found my answer. Thought I would post it here anyway... for posterity.

I want to do /exactly/ what Brian Larsen is asking /exactly/ the way Bill Gallery described. The problem is that the data for each level of the axis are independent. XTICKNAMES will not accept an array of ticknames for each level of the axis, and XTICKFORMAT will not know about the data for other axis levels unless I set up a common block and create a tickformat function.

Turns out, this plot was made using the TDASS software from the THEMIS mission.
http://themis.ssl.berkeley.edu/software.shtml

Following the LABEL_VAR keyword in the TPlot program...
ftp://sohoftp.nascom.nasa.gov/solarsoft/packages/tplot/gener al/tplot/help.html#TPLOT

TPlot stores data as internal TPlot variables. The ticknames from each variable are extracted from the data and appended to one another by added "!C" just as Paolo described.


I would still like to be able to use axis levels with the [XYZ]TICKNAME keyword. That would make things much much easier.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: colorbar() rotation/translation bugs
Next Topic: Colobar() xcoord_conv error

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

Current Time: Wed Oct 08 13:31:34 PDT 2025

Total time taken to generate the page: 0.00443 seconds