Hi John - 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. An example is appended below. Thanks, -- 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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Example 1: % 2 plots/page: (OK) % variable pwid = open_plot( "/xwin", 1, 2 ) ; xlabel( "x"); ylabel( "y" ); title("top"); plot( [0,1], [0,1] ) ; xlabel( "xx"); ylabel( "yy" ); title("bottom"); plot( [0,1], [1,0] ) ; % repeat to file: (OK) % variable pid = dup_plot("Tst-1.ps/vcps", pwid ); xlabel( "x"); ylabel( "y" ); title("top"); plot( [0,1], [0,1] ) ; xlabel( "xx"); ylabel( "yy" ); title("bottom"); plot( [0,1], [1,0] ) ; close_plot(pid); window(pwid); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Example 2: two plots/page, top plot split: (OK) multiplot([2,1] ) ; xlabel( "x"); ylabel( "y" ); title("top"); plot( [0,1], [0,1] ) ; ylabel( "z" ); plot( [0,1], [1,0] ) ; multiplot(1); xlabel( "xxx"); ylabel( "yyy" ); title("bottom"); plot( [0,1,2], [1,0,1] ) ; % repeat to file (not OK: gives 2 page output, not one): pid = dup_plot("Tst-2.ps/vcps", pwid ); multiplot([2,1] ) ; xlabel( "x"); ylabel( "y" ); title("top"); plot( [0,1], [0,1] ) ; ylabel( "z" ); plot( [0,1], [1,0] ) ; multiplot(1); xlabel( "xxx"); ylabel( "yyy" ); title("bottom"); plot( [0,1,0], [1,0,1] ) ; close_plot(pid); window(pwid); ---- 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: unsubscribeReceived on Wed Jan 11 2006 - 13:37:49 EST
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:44 EDT