You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
(10) |
2
(10) |
3
(9) |
4
(3) |
5
(2) |
6
(6) |
7
(12) |
8
(21) |
9
(4) |
10
(19) |
11
(7) |
12
(2) |
13
(28) |
14
(13) |
15
(27) |
16
(17) |
17
(21) |
18
(22) |
19
(3) |
20
(25) |
21
(17) |
22
(16) |
23
(28) |
24
(19) |
25
(4) |
26
(4) |
27
(23) |
28
(13) |
29
(15) |
30
(19) |
|
|
When performing interactive plotting from a script (i.e. matplotlib.interactive(True) followed by my plotting code, no show() calls involved but sometimes draw()) I am getting plot windows that initially show a plot, but upon attempts at interaction hang and go blank. Unfortunately, I cannot reproduce this with simple examples yet, only from an application that I have been using for the past year starting with matplotlib 0.98, then 0.99.3, and now 1.0.0. Details... I am on 64-bit Windows 7 using 64-bit Python 2.7 and many 64-bit packages, including matplotlib, from http://www.lfd.uci.edu/~gohlke/pythonlibs/ Chris Gohlke's excellent site . I encounter these hanging, interactive windows in the following Python environments o 64-bit Python 2.6.5 with matplotlib 1.0.0 64-bit installer from source forge o 64-bit Python 2.7 with matplotlib 1.0.0 64-bit installer from Chris' periodic svn builds. This is my main environment. In both environments, the problem exists with the TkAgg and WxAgg backends, and it happens whether I use the basic Python shell, or the IPython 0.10 and 0.11 shells. The solution for me is to use the Qt4Agg backend. Everything works as expected using this backend. I cannot find any obvious issues in my code. Again, this application has been working with previous versions of matplotlib using the default TkAgg backend, on 32-bit Windows XP and 64-bit Windows 7 for a while now. Has anyone else experienced similar issues? There is a http://old.nabble.com/problems-with-ipython-0.10-autocompletion-and-interactive-plotting-td29312351.html#a29421228 related thread here which seems to have been dealt with by reverting to 0.99.3. Thanks, ----- Josh Hemann Statistical Advisor http://www.roguewave.com//" Rogue Wave Software jhemann at vni dizzot com -- View this message in context: http://old.nabble.com/Interactive-plotting-hangs-with-certain-backends-on-64-bit-Windows-7-tp29822071p29822071.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Mon, Sep 27, 2010 at 14:15, Aman Thakral <ama...@gm...> wrote: > I think you're looking at an old example. Have a look at this one: > > http://matplotlib.sourceforge.net/examples/pylab_examples/multiple_yaxis_with_spines.html > > Is that the desire effect? Yes, thanks. > Regards, > > Aman > > It did not though. I'm not sure why. Could someone please clarify? > > On Mon, Sep 27, 2010 at 12:35 PM, Filipe Pires Alvarenga Fernandes > <oc...@gm...> wrote: >> >> I was wondering if there is a way to get a effect similar to this example: >> >> >> http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale >> >> Here The yticklabels have the same color as the label, but using >> host/parasite: >> >> >> http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html >> >> >> I tried: >> >> for tl in host.axis["right"].axis.axes.get_xticklabels(): >> tl.set_color('b') >> >> without success. >> >> Thanks, Filipe. >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > -- > Aman Thakral > B.Eng & Biosci, M.Eng Design >
In article <4CA...@ha...>, Eric Firing <ef...@ha...> wrote: > On 09/26/2010 09:43 PM, Fernando Perez wrote: > > Mmh, > > > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon > > Lee<lee...@gm...> wrote: > >> > >> Did you try autoscale_view method? > >> > >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#mat > >> plotlib.axes.Axes.autoscale_view > >> > >> Please post a sample script that reproduces the problem. > >> > > > > I'm wondering if I'm doing something wrong then. Just now I was > > writing some notes about this for a tutorial, and tried this code: > > > > line, = plt.plot([1,2,3], label='my data') > > plt.grid() > > plt.title('My title') > > x = np.linspace(0, 1) > > y = x**2 > > line.set_data(x, y) > > ax = gca() > > ax.autoscale_view() > > plt.draw() > > > > but I get the result shown in the screenshot. Am I misusing > > autoscale_view? As best I can tell from the docstring, I'm making > > correct use of it, but perhaps I'm missing something... > > autoscale_view somewhat defeats the purpose of line.set_data, which is > intentionally minimalist. If you want autoscaling after update, but > don't want to simply clear and plot, then you need to explicitly update > the Axes.dataLim. You can do this using Axes.relim() > prior to calling autoscale_view(). Thank you. That is exactly what I needed. It looks like Axes.get_ybound() will return the min and max displayed y so whenever I add a point I can test if it is within those bounds; if it is not then I can call relim(). That should preserve the efficiency most of the time while still allowing autoscaling and avoiding my having to keep accurate track of what's going on. -- Russell
Hi, all! How to build a surface from a file? I could read data : x,y,z = loadtxt('data.txt', usecols=[0,1,2], unpack=True), but was unable to draw :-(( In a file stored vertices rectangular sites: -3.7169418696 -1.1272630211 2.3019377358 -3.8909157412 -2.0312577759 1.7469796037 -3.5817236434 -2.3326455834 1.7469796037 -3.7169418696 -1.1272630211 2.3019377358 -3.7169418696 -1.1272630211 2.3019377358 -3.5817236434 -2.3326455834 1.7469796037 -3.5453532005 -1.2945206358 2.3019377358 -3.7169418696 -1.1272630211 2.3019377358 ... Thank. -- View this message in context: http://old.nabble.com/plot3Dsurface4txtfile-tp29816972p29816972.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Hi, Is there a way to change the way a Pick event occurs? Instead of a mouse click, is it possible to use a mouse hover? I'm just curious because I'm developing a wx application and would like to have a Tooltip over various artists. Thanks, Aman
I was wondering if there is a way to get a effect similar to this example: http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale Here The yticklabels have the same color as the label, but using host/parasite: http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html I tried: for tl in host.axis["right"].axis.axes.get_xticklabels(): tl.set_color('b') without success. Thanks, Filipe.
On 27 September 2010 15:37, radfahrer <cl...@m-...> wrote: > I am trying to plot a triangular grid from a textfile using triplot, but > all > I get is some wired straight line > Your triangulation consists of just two triangles, the first with vertices (0, 0) (0.1, 0.1) (0.1, 0.1) and the second (0, 0), (0.1, 0.1), (0, 0). Each of these triangles has duplicate vertices and is therefore a straight line. In fact you only have three distinct points in your points.dat file, at (0, 0), (0.05, 0.05), and (0.1, 0.1). You can never construct a triangle which isn't a straight line with these points. Perhaps you intended your points.dat file to be something like 0 0 0 0.05 0 0.1 0.05 0 0.05 0.05 0.05 0.1 0.1 0 0.1 0.05 0.1 0.1 Ian
Brian, Do you, by chance, use interactive mode? Maybe ipython -pylab (if this does)? Just a shot into the dark ...
2010年9月23日 Peter Hoekje <ph...@bw...>: > OK, I spoke a little too soon last time. I reinstalled it tonight and looked a little closer. Essentially all of the regular files under > .../site-packages/matplotlib/... and its subdirectories have permissions similar to > -rw--w---- > not just the mpl-data subdir, and I guess they should be something like > -rw-r--r-- > > Also, I looked into why I couldn't chmod; apparently our "labadmin" account wasn't given permission to chmod or chown anybody else's files, so I need to talk to our IT guy about that. > peter When you run the installer, OS X just asks you for *some* administrator account, and if you can provide this, the installer will actually be run by the system in the **root** account! (At least on my machine, which isn't a server. I guess your's is?) 'Course you cannot chmod those files. For the installer, it's really just a mistake, if noone cares, I can prepare a new installer here on my machine. Friedrich
On Fri, Sep 24, 2010 at 5:28 PM, Xavier Gnata <xav...@gm...> wrote: > I'm not a svn expert but I get an error when I try to checkout the py3k > branch: > svn: Repository moved temporarily to '/viewvc/matplotlib/branches/'; > please relocate > Any clues? That URL was a link to the web view of SVN. You need to checkout from: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/py3k Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
2010年9月21日 Brian Blais <bb...@br...>: > actually, I think the workflow that I use doesn't lend itself well to this. usually what I do is write code in the local space, in a if __name__=="__main__" block, so that after things run I can easily inspect variables, test the results, rerun, etc... It's only after things work that I box it into a nice function that can be called with an event callback. this is one of the reasons I use python, so that I can easily interact with my data. > > why does the way I wrote things play havoc with GUI event loops? it shouldn't care, or at worst the GUI parts of the window (menus, buttons) should be unresponsive when the plots are drawn but the plots should at least be drawn! You must be with Tkinter extremely careful when having no mainloop() call. There is no separate thread keeping the GUI mainloop poll running when you import Tkinter (or matplotlib does). I.e., you have two options, at least: 1) You implement your own mainloop, like calling the main widget's .update() method repeatedly 2) You use Tkinter .after(), what I guess the Timer object will do. What you should definitely avoid, just in case, is calling Tkinter methods from *another* thread than those which imported Tkinter (this is those which imported matplotlib in your case). Not adhering to this rule will lead to unpredictable behaviour, especially on OS X (I went through it, and it's painful). You don't do this atm, just don't do it in future too. The normal-users usecase of TkAgg is an interactive Python session. For some reason I don't understand myself, it works there. Obviously the Tkinter update poll is done when you enter the prompt or something like that. In a script, you have no prompt, so you have no update, I could imagine, but though, draw() should do that. Friedrich >> The benefit is that the timed updates integrate into the >> GUI event loop and don't fight it. The other benefit is that this >> works with any of the interactive backends and you don't end up >> debugging weird draw problems. Even when I've gotten your style of >> animation to work in the past, I've still had problems where resizing >> the figure, etc. don't work. > perhaps I can write things this way, and have the function inject into locals(), just to make it easier to debug the results, but that seems to me to be a bit of a hack. I'm not really interested in an animation, as much as easily visualizing my data every so often. I don't like that local() approach too, it really sounds hackish. You can use a bound class method (i.e., a method of some instance of some class coded by you), and this will have access to self.*. Do you like this? The method would be the timer target. > when people come from using matlab, and then hit odd draw problems like this, it is disconcerting. Maybe; maybe Python is just not the same as Matlab? To argument, the graphical backend is not embedded into Python, Tkinter is a package, although it ships with Python.
Hi everybody, I am trying to plot a triangular grid from a textfile using triplot, but all I get is some wired straight line code: import numpy as np import matplotlib.pyplot as plt x, y = np.loadtxt('points.dat', unpack=True) triangles = np.loadtxt('triangles.dat', dtype=np.int32) plt.triplot(x, y, triangles, 'go-') Thanks http://old.nabble.com/file/p29815755/points.dat points.dat http://old.nabble.com/file/p29815755/triangles.dat triangles.dat -- View this message in context: http://old.nabble.com/Problems-using-triplot-from-file-tp29815755p29815755.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On 9/27/2010 9:10 AM, Piter_ wrote: > Is it possiblle in matplotlib to draw something like this? > http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Integral_example.svg/420px-Integral_example.svg.png http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html hth, Alan Isaac
Have a look at fill_between: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.fill_between Basically, You'd want something like this: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, np.pi, 20) y = np.sin(x) plt.figure() plt.fill_between(x, y, where=y>0, facecolor='blue', interpolate=True) plt.fill_between(x, y, where=y<0, facecolor='yellow', interpolate=True) plt.show() Hope that helps! -Joe On Mon, Sep 27, 2010 at 8:10 AM, Piter_ <x....@gm...> wrote: > Hi all. > Is it possiblle in matplotlib to draw something like this? > > http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Integral_example.svg/420px-Integral_example.svg.png > Thanks. > Petro. > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hi all. Is it possiblle in matplotlib to draw something like this? http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Integral_example.svg/420px-Integral_example.svg.png Thanks. Petro.
On Mon, Sep 27, 2010 at 1:23 AM, Eric Firing <ef...@ha...> wrote: > You can do this using Axes.relim() > prior to calling autoscale_view(). > Aha! That's the call I missed, thanks a bunch. Perhaps a note indicating that in the autoscale_view docstring wouldn't hurt, because as it reads now I think the confusion I had is an easy one to fall into. Many thanks! I added this to my tutorial notes :) Cheers, f
On 09/26/2010 09:43 PM, Fernando Perez wrote: > Mmh, > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee<lee...@gm...> wrote: >> >> Did you try autoscale_view method? >> >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view >> >> Please post a sample script that reproduces the problem. >> > > I'm wondering if I'm doing something wrong then. Just now I was > writing some notes about this for a tutorial, and tried this code: > > line, = plt.plot([1,2,3], label='my data') > plt.grid() > plt.title('My title') > x = np.linspace(0, 1) > y = x**2 > line.set_data(x, y) > ax = gca() > ax.autoscale_view() > plt.draw() > > but I get the result shown in the screenshot. Am I misusing > autoscale_view? As best I can tell from the docstring, I'm making > correct use of it, but perhaps I'm missing something... autoscale_view somewhat defeats the purpose of line.set_data, which is intentionally minimalist. If you want autoscaling after update, but don't want to simply clear and plot, then you need to explicitly update the Axes.dataLim. You can do this using Axes.relim() prior to calling autoscale_view(). Eric > > Cheers, > > f > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee <lee...@gm...> wrote: > > Did you try autoscale_view method? > > http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view > > Please post a sample script that reproduces the problem. > I'm wondering if I'm doing something wrong then. Just now I was writing some notes about this for a tutorial, and tried this code: line, = plt.plot([1,2,3], label='my data') plt.grid() plt.title('My title') x = np.linspace(0, 1) y = x**2 line.set_data(x, y) ax = gca() ax.autoscale_view() plt.draw() but I get the result shown in the screenshot. Am I misusing autoscale_view? As best I can tell from the docstring, I'm making correct use of it, but perhaps I'm missing something... Cheers, f
On Sat, Sep 25, 2010 at 8:15 AM, Russell E. Owen <ro...@uw...> wrote: > Perhaps I should keep track of the y limits myself. That saves time when > adding a new data point because I can compare it to cached limits > (instead of scanning the whole data set). But it quickly gets messy if > one handles nan correctly and matplotlib already does this so I was > thinking matplotlib must have API code to help with this. But so far > I've not figured it out from the docs (though matplotlib.ticker looks > promising). > Did you try autoscale_view method? http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view Please post a sample script that reproduces the problem. Regards, -JJ
Try something like handles1, labels1 = ax1.get_legend_handles_labels() handles2, labels2 = ax2.get_legend_handles_labels() ax2.legend(handles1+handles2, labels1+labels2) Also, see http://matplotlib.sourceforge.net/users/legend_guide.html Regards, -JJ On Sat, Sep 25, 2010 at 6:08 AM, Raju Subban <raj...@gm...> wrote: > Hi, > In the code below legend(label) for ax2 is shown as ax2.legend() is called > after ax1.legend(). > Both plots do show up as expected. > > What should I do to get the legends for both plots. > > Thank you > Raju > -------------------------------------- > import matplotlib.pyplot as plt > import numpy as py > x=np.arange(0.0,np.e,0.02) > y1=np.exp(-x) > y2=np.exp(x) > fig = plt.figure() > ax1=fig.add_subplot(111) > ax2=ax1.twinx() > ax1.plot(x,y1,label="First") > ax2.plot(x,y2,label="Second") > ax1.legend() > ax2.legend() > plt.show() > > -- > Hemantharaju Subbanna > 408-857-9414(cell) > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Please post a sample script (short but complete) that demonstrates your problem. Regards, -JJ On Sat, Sep 25, 2010 at 12:41 AM, Aman Thakral <ama...@gm...> wrote: > Hi all, > I'm using a draggable legend (class, not function) with axes splines. > Whenever I plot the legend using the host axes, the legend appears to behind > all of the lines. I want the user to be able to drag the legend but I > cannot select it when its inside the axes. If I move it outside the axes > (by setting the location), I can drag it around. Is there anyway to bring > the legend to the front? > > Thanks, > Aman > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
---------- Forwarded message ---------- From: Jae-Joon Lee <lee...@gm...> Date: Mon, Sep 27, 2010 at 11:41 AM Subject: Re: [Matplotlib-users] Plotting Arrows To: Gus Ishere <gus...@gm...> This turns out to be a bug. And I think fixed it with r8720 and r8721. Meanwhile, try to use other arrowstyles (e.g., "->") or other arrow commands. Also, the recommend way is to use "annotate" command. For example, ax.annotate("", (0, 0), (3,2), arrowprops=dict(arrowstyle="->")) Regards, -JJ On Sun, Sep 26, 2010 at 3:11 PM, Gus Ishere <gus...@gm...> wrote: > I'd like to plot some arrows. I can use the pyplot.arrow function but it > does not give an arrow head. I am trying to use FancyArrow in the following > way: > import matplotlib as mpl > import matplotlib.pyplot as plt > plt.figure(None) > ax = plt.gca() > arr = mpl.patches.FancyArrowPatch((0,0),(3,2),arrowstyle='simple') > ax.add_patch(arr) > plt.show() > but I get "ValueError: Given lines do not intersect" in the bezier.py file. > (Full traceback below) > Thanks for any hints! > Gus > > > Traceback (most recent call last): > File "M:\mypy\minimum.py", line 8, in <module> > ax.add_patch(arr) > File "C:\Python26\lib\site-packages\matplotlib\axes.py", line 1453, in > add_patch > self._update_patch_limits(p) > File "C:\Python26\lib\site-packages\matplotlib\axes.py", line 1469, in > _update_patch_limits > vertices = patch.get_path().vertices > File "C:\Python26\lib\site-packages\matplotlib\patches.py", line 3792, in > get_path > _path, fillable = self.get_path_in_displaycoord() > File "C:\Python26\lib\site-packages\matplotlib\patches.py", line 3822, in > get_path_in_displaycoord > self.get_mutation_aspect() > File "C:\Python26\lib\site-packages\matplotlib\patches.py", line 2845, in > __call__ > return self.transmute(path, mutation_size, linewidth) > File "C:\Python26\lib\site-packages\matplotlib\patches.py", line 3384, in > transmute > tail_left, tail_right = get_parallels(arrow_out, tail_width/2.) > File "C:\Python26\lib\site-packages\matplotlib\bezier.py", line 359, in > get_parallels > c2x_left, c2y_left, cos_t2, sin_t2) > File "C:\Python26\lib\site-packages\matplotlib\bezier.py", line 34, in > get_intersection > raise ValueError("Given lines do not intersect") > ValueError: Given lines do not intersect > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >