how to make a multi-panel bar plot?

From: Gary Bates <gary.bates_at_nyahnyahspammersnyahnyah>
Date: Mon, 24 Nov 2008 11:27:55 -0700


I have a working pyngl code which makes a bar plot. Now I want to make
a 3-panel bar plot. The panel examples use plot.append to do this, but
I can't work out how to use this approach with Ngl.polygon and
Ngl.polyline below:

# Loop through each Y point, and create and draw a bar for it.
    for i in xrange(len(y)):
      xbar,ybar = get_bar(x[i],y[i],dx,ymin)
      print xbar
      print ybar

      gsres.gsFillColor = colors[5] # Set color for bar.
      Ngl.polygon(wks,plot,xbar,ybar,gsres) # Fill the bar.
      Ngl.polyline(wks,plot,xbar,ybar) # Outline the bar.

Anyone know the solution to this problem?
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Nov 24 2008 - 11:27:55 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 09:25:48 MST