On Thu, Nov 06, 2008 at 10:35 -0700, Tolga Guver wrote: > Hi, > > I am trying to create a multiplot using the tool multiplot in ISIS. > However i have a problem with the x and y axis labels. > > It starts writing the label from the central point of the axis with a > left justification, so the final text does not look like centralized. > Instead it just starts from that central point, which of course if the > text is long enough does not look nice. > > I used > > xlabel("Time (s)"); > ylabel("Flux"); > > in ISIS commands. > i also tried > > _pglab and label version of that as well > > they all did the same thing. > With the usual spectral plots, i don't have that problem they just look > perfect. > I was wondering if there is something i can do for that. I can send the > whole plot script if needed. > > thank you very much > tolga For custom label positioning relative to the plot viewport, you can use the low-level pgplot function _pgmtxt. This function is documented at http://www.astro.caltech.edu/~tjp/pgplot/subroutines.html#PGMTXT I've appended an example of using _pgmtxt with multiplot. Alternatively, _pgptxt allows drawing text at an arbitrary angle at a position specified in the (X,Y) coordinates of the current plot. The isis function xylabel() is a wrapper around this pgplot function. Thanks, -John variable id = plot_open ("plot.ps/cps"); multiplot (ones(3)); variable x = [1:10]; plot(x,x); plot(x,x^2); plot(x,x^3); multiplot (1); _pgmtxt ("L", 3, 0.25, 0.0, "A long Y-axis label that spans several plots"); plot_close (id); ---- 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 Fri Nov 07 2008 - 08:30:05 EST
This archive was generated by hypermail 2.2.0 : Fri Nov 07 2008 - 08:30:12 EST