Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: pgplotter.psprint - Function Up: pgplotter - Tool Previous: pgplotter.plotxy1 - Function


pgplotter.ploty2 - Function



Package display
Module plotter
Tool pgplotter


Plot Y vectors with auto-scaling using the right Y axis


Synopsis
ploty2(y, xlab, ylab, tlab, plotlines, ptsymbol)


Arguments

y   A collection of Y vectors
    Allowed: float
xlab   A label for the X axis
    Allowed: string
ylab   A label for the Y axis
    Allowed: string
tlab   A label for the plot title
    Allowed: string
plotlines   Toggle for plotting lines or points
    Allowed: Boolean
    Default: T (lines)
ptsymbol   Symbol ID
    Allowed: integer
    Default: 2


Returns
boolean


Description
This gplot1d-emulator plots a collection of Y vectors with auto-scaling using the right Y axis (which will have separate labels from the left Y axis). If there is more than one Y vector, they should be arranged in a 2-D array with the first dimension being the number of vectors to plot and the second dimension being the length of each vector. The X axis will default to an index number starting at 1. The color of each Y vector on the plot will be different for the first 16 plots, after that the colors will cycle through the same 16 colors. The order of these colors is the reverse order of that used in the ploty and plotxy1 function.



Example
include 'pgplotter.g'
pg := pgplotter();
x := 1:100;
pg.ploty(sqrt(x),'X','Y','TITLE');
pg.ploty2(sin(x/3),,'Y2');





next up previous contents index
Next: pgplotter.psprint - Function Up: pgplotter - Tool Previous: pgplotter.plotxy1 - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15