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

Home » Public Forums » archive » Trouble with positioning cgColorbars while using !P.Multi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Trouble with positioning cgColorbars while using !P.Multi [message #82540 is a reply to message #82498] Sun, 16 December 2012 09:26 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
On Wednesday, December 12, 2012 2:10:15 PM UTC-5, Leah Huk wrote:
> I am creating some postscript files with 4 contour plots each using !p.multi. I would like each plot to have it's own colorbar positioned with it as they all have unique ranges. I've dug around and found that use of the POSITION keyword is not compatible with !p.multi. Is there another way for me to position each colorbar with it's corresponding plot, instead of all on top of each other and in the middle of the plots? Or am I doomed to use the position keyword for every plot and every colorbar? This seems daunting to implement; I have my cgContour and colorbar command embedded within a set of for loops for ease of plotting many many parameter "slices" of a rather large data grid.



I wrote a program that you can download with the link below. You can specify the layout of each plot, the margins, gaps between plots, etc. It works like !p.multi, but with more control and defaults to the IDL defaults. For an example of how it works, there is a main level program at the end (IDL> .r plot_positions)

The position of each plot is returned as an [n,m,4] array, where n and m are the number of columns and rows, respectively.

https://www.dropbox.com/sh/60ccv0053hvakji/dDBb-fbR1I/MrPlot /utilities/plot_utils/plot_positions.pro
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Read PDF on a Mac
Next Topic: Re: setenv DISPLAY fix not working with X Widonws display problem...

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

Current Time: Sat Oct 11 13:13:42 PDT 2025

Total time taken to generate the page: 1.11842 seconds