On 2/14/11 4:54 PM, Benjamin Root wrote:
On Mon, Feb 14, 2011 at 5:30 PM, John Hunter <jdh2...@gmail.com <mailto:jdh2...@gmail.com>> wrote:

    On Sun, Feb 13, 2011 at 11:45 PM, Tom Flannaghan <tj...@cam.ac.uk
    <mailto:tj...@cam.ac.uk>> wrote:

    > It would also be helpful if anyone has suggestions on a
    particular issue I had.
    > Currently, to plot variable-width lines (i.e. streamlines2.png)
    I use a plot
    > command for each line segment which is very slow and nasty. Is
    there a better
    > way I'm missing?

    You probably want to use a compound path (one object for the entire
    plot).  See the tutorial at
    http://matplotlib.sourceforge.net/users/path_tutorial.html, in
    particular the compound path for the histogram example near the end,
    and let me know if you have any questions.

    JDH


Personally, I am more a fan of Ray's version, although Tom's version would integrate more nicely with the current mpl codebase. There are some nice features with Ray's version such as allowing to choose density in both x and y directions.

I guess the major question is which style do we like better? Maybe we could use both of these code bases to come up with a nice, generalized version?

Ben Root



Ben, John: Later this week or next, I'll take a crack at adding both of these to quiver.py and axes.py (one under the name "streamlines", the other as "streamplot").

-Jeff

--
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : jeffrey.s.whita...@noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to