Re: dup_plot question/problem

From: David P. Huenemoerder <dph_at_email.domain.hidden>
Date: Wed, 11 Jan 2006 15:49:41 -0500
>>>>> "John" == John Houck <houck_at_email.domain.hidden
    John> On Wed, Jan 11, 2006 at 12:51 -0500, David P. Huenemoerder wrote:
    >> It looks like multiplot() confuses dup_plot().  I was trying to make
    >> two plots per page by specifying 2 rows, 1 column with open_plot(),
    >> but also use multiplot() to split the top window.  Without
    >> multiplot(), the postscript file set up with dup_plot() is OK - it has
    >> one page, two plots.  However, if I modify the example to split the
    >> top plot with multiplot(), it is as desired on the screen, but the ps
    >> file from dup_plot() comes out on two pages.
    >> 
    >> Is this a bug? a feature?  I haven't used dup_plot() much, but thought
    >> I'd would to see if I could save myself repeated plot configuration
    >> for the ps version.
    >> 

    John> The short answer is that this kind of thing isn't fully
    John> supported. The fact that multiplot worked in your example is a
    John> "feature". I'm not surprised that dup_plot didn't do what you
    John> expected.

    John> As a workaround, is it reasonable to write a function to create
    John> the plot for a given device and then simply call that function
    John> twice?  That would bypass dup_plot and should produce the same
    John> plot for all devices.

I have something like that, but I was losing information when going to
postscript.  E.g., 

plot to screen:

  title("this is a title for the first plot");
  my_complicated_plot_function( hist_index, conf_map);

looks good, so go to ps:

  my_complicated_plot_function( hist_index, conf_map, "File.ps/vcps");

But then, my title is not kept - now I have to pass or store that,
too.   So my attempt at a quick mod was to use dup_plot, and I found
the other problem.

So I guess I was really trying to use dup_plot to make up for an
incomplete interface, to pick up the title which I lost.

    John> Regarding dup_plot:
..

    John> I'll look at the code to see what it would take for isis to
    John> support these kinds of plots.  If major changes aren't
    John> needed, I'll try to get this to work.  If I can't make it
    John> work without an extensive rewrite, I'll try to clarify the
    John> documentation to explain the issue.

It could be that "these kinds" are to general, and custom plot
functions will be a better route (assuming clarified documentation).

Thanks for the info,

-- Dave

David Huenemoerder  617-253-4283 (o); -253-8084 (f); http://space.mit.edu/home/dph
MIT Kavli Institute for Astrophysics and Space Research
70 Vassar St., NE80-6065,
Cambridge, MA  02139
[Admin. Asst.: Elaine Tirrell, 617-253-7480, egt_at_email.domain.hidden----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Wed Jan 11 2006 - 15:50:41 EST

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:51 EDT