dear all,
first, please let me thank the pyngl/ncl developers for their great work!
i would like to plot a streamline plot where the coloring
uses a scalar data array.
for instance i manage to plot the streamline plot with:
plot = Ngl.streamline(wks, u_array, v_array, resources)
and now i would like to color the streamlines according to one vector
component (i.e. the v_array) or another 2d array
i understand that i must specify:
resources.stMonoLineColor = False
resources.stUseScalarArray = True
but how can i specify how/which scalar data array has to be used for the
coloring?
since i don't i get:
warning:StreamlinePlotInitialize: No scalar data: using streamline
magnitude for levelsa
and pyngl colors according to the norm of the vector
the manual indicates: the resource stScalarFieldData is [to be] set with
a valid ScalarField object
i don't know how this can be done in practice and i would be very
grateful for every hint.
best greetings,
radovan
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Sep 04 2007 - 06:48:36 MDT
This archive was generated by hypermail 2.2.0 : Wed Sep 05 2007 - 09:07:02 MDT