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) |
|
|
|
From: Ian T. <ian...@gm...> - 2010-09-27 16:28:30
|
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 |
|
From: Friedrich R. <fri...@gm...> - 2010-09-27 15:39:21
|
Brian, Do you, by chance, use interactive mode? Maybe ipython -pylab (if this does)? Just a shot into the dark ... |
|
From: Friedrich R. <fri...@gm...> - 2010-09-27 15:31:54
|
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 |
|
From: Ryan M. <rm...@gm...> - 2010-09-27 15:31:24
|
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 |
|
From: Friedrich R. <fri...@gm...> - 2010-09-27 15:25:57
|
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. |
|
From: radfahrer <cl...@m-...> - 2010-09-27 14:37:36
|
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.
|
|
From: Alan G I. <ala...@gm...> - 2010-09-27 14:10:08
|
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 |
|
From: Joe K. <jki...@wi...> - 2010-09-27 13:29:43
|
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 > > |
|
From: Piter_ <x....@gm...> - 2010-09-27 13:10:49
|
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. |
|
From: Fernando P. <fpe...@gm...> - 2010-09-27 08:34:43
|
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 |
|
From: Eric F. <ef...@ha...> - 2010-09-27 08:24:07
|
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 |
|
From: Fernando P. <fpe...@gm...> - 2010-09-27 07:43:45
|
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 |
|
From: Jae-Joon L. <lee...@gm...> - 2010-09-27 05:57:01
|
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 |
|
From: Jae-Joon L. <lee...@gm...> - 2010-09-27 02:57:18
|
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 > > |
|
From: Jae-Joon L. <lee...@gm...> - 2010-09-27 02:49:00
|
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 > > |
|
From: Jae-Joon L. <lee...@gm...> - 2010-09-27 02:42:58
|
---------- 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
>
>
|
|
From: Marius 't H. <M.t...@ai...> - 2010-09-26 17:01:54
|
The function arrow() works for me (Python 2.6.5, matplotlib 99.1.2).
Perhaps something in your installation needs to be changed.
You might try pylab.Arrow() to create patches or perhaps quiver() which
draws a whole set of arrows.
On 09/26/2010 08:11 AM, Gus Ishere 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
>
|
|
From: Gökhan S. <gok...@gm...> - 2010-09-26 16:35:02
|
On Sun, Sep 26, 2010 at 3:49 AM, sa6113 <s.p...@gm...> wrote: > > I want to use more than 2 axes in my plot, for example yleft,yright, butoom > or top, is it possible? > any body had done it before? > > I read in matplotlib's document that : " matplotlib is organized around > figures and axes. The figure contains an arbitrary number of axes, which > can > be placed anywhere in the figure you want, including over other axes. You > can directly create and manage your own figures and axes." > How? > -- I suggest spending sometime going through the matplotlib gallery. [ http://matplotlib.sourceforge.net/gallery.html] This example should give you a good start for multiple axes plotting [ http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html ] Gökhan |
|
From: sa6113 <s.p...@gm...> - 2010-09-26 08:49:09
|
I want to use more than 2 axes in my plot, for example yleft,yright, butoom or top, is it possible? any body had done it before? I read in matplotlib's document that : " matplotlib is organized around figures and axes. The figure contains an arbitrary number of axes, which can be placed anywhere in the figure you want, including over other axes. You can directly create and manage your own figures and axes." How? -- View this message in context: http://old.nabble.com/axes-in-matplotlib-tp29810432p29810432.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Gus I. <gus...@gm...> - 2010-09-26 06:11:35
|
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
|
|
From: C M <cmp...@gm...> - 2010-09-25 22:05:59
|
I'd like to offer a simplest possible example for embedding in wxPython; significantly simpler and completely pared down compared to either of the two that are shown here: http://www.scipy.org/Matplotlib_figure_in_a_wx_panel but I don't have access to modify the page. Doesn't anyone on the list have that access, and would that be welcome? My example is ~20 lines long. Thanks, Che |
|
From: Jouni K. S. <jk...@ik...> - 2010-09-25 19:11:58
|
Daniel Hyams <dh...@gm...> writes:
> I was playing around with draggable legends, and some strange things started
> happening (exception down in the depths of beckend_agg.py, accompanied by a
> long stack trace). To make a long story short, I can reproduce this in the
> draggable_legend.py example on the matplotlib website. All you have to do
> is change line 7 [...] to
>
> l = ax.legend(bbox_to_anchor=(.1,.1))
Apparently this creates a bounding box with zero width and height, which
causes NaNs to appear in various transforms later on. It seems that you
can get the same placement of the legend with
l = ax.legend(bbox_to_anchor=(0,0,.1,.1))
which creates a non-degenerate bounding box that doesn't have this
problem. A possibly simpler option is
l = ax.legend(loc=(-0.2,0.1))
which sets the position of the lower-left corner of the legend box so
you'll need to tweak the coordinates from what you used with
bbox_to_anchor.
> I'm sure that I'm not understanding the proper usage of
> bbox_to_anchor.
I'm not sure either. It seems that the two-number form of the bounding
box is meant to create a degenerate bounding box so that any kind of
location specifier ("upper right", "lower center", etc) will always hit
that exact place, but perhaps naturally that makes it difficult to move
the box around.
--
Jouni K. Seppänen
http://www.iki.fi/jks
|
|
From: Jouni K. S. <jk...@ik...> - 2010-09-25 12:15:56
|
John Salvatier <jsalvati@u.washington.edu> writes: > Is there a way to do "asynchronous" plots in matplotlib? By asynchronous I > mean plots that simply spawn a new process and do not stop the program while > the plot is visible? In 2007 Bill Baxter made a package called ezplot that does plots in a separate process via a remote procedure call interface. I don't think the project has been continued since, so it might not be compatible with current matplotlib, but it may be a useful starting point: http://www.billbaxter.com/projects/ezplot/ -- Jouni K. Seppänen http://www.iki.fi/jks |
|
From: Daniel H. <dh...@gm...> - 2010-09-25 05:31:27
|
I was playing around with draggable legends, and some strange things started happening (exception down in the depths of beckend_agg.py, accompanied by a long stack trace). To make a long story short, I can reproduce this in the draggable_legend.py example on the matplotlib website. All you have to do is change line 7 from l = ax.legend() to l = ax.legend(bbox_to_anchor=(.1,.1)) Fire this up, and move the legend box with your mouse. It works. Move again, exception raised. I'm sure that I'm not understanding the proper usage of bbox_to_anchor. I thought that i could use it to place the legend initially, and then let the user drag the legend around if the placement wasn't satisfactory. -- Daniel Hyams dh...@gm... |
|
From: Russell O. <ro...@uw...> - 2010-09-24 23:34:11
|
On Sep 24, 2010, at 4:15 PM, Benjamin Root wrote: > On Fri, Sep 24, 2010 at 5:47 PM, Russell E. Owen <ro...@uw...> wrote: > In article > <AAN...@ma...>, > Benjamin Root <ben...@ou...> wrote: > > > On Fri, Sep 24, 2010 at 12:30 PM, Russell E. Owen > > <ro...@uw...> wrote: > > > > > I'm making a set of plots (a strip chart) stacked on top of each > other, > > > all sharing the same X axis (time). > > > > > > So far it appears that to get the X axis of each Subplot to > match I have > > > to set its properties independently. > > > > > > Is there some way to tie them all together so that a user can > set the > > > properties of one and have it propagate? I'm particularly > concerned > > > about tick marks and the X grid lines; I only want to show tick > labels > > > on the bottom-most Subplot. > > > > > > I suppose one possibility is to create some kind of object on > which I > > > can call Subplot.xaxis methods and have it apply those changes > to all > > > the Subplots. Has anyone done this? > > > > > > -- Russell > > > > > > > > Russell, maybe this example might help? > > > > http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.htm > > l > > > > There are also some more advanced subplot layout methods available > called > > axis_grid1 in the mpl_toolkits. > > > > http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html > > > > I hope this helps! > > > > Ben Root > > Thank you. sharex was just what I was looking for. > > I was pleasantly surprised I could hide the x axis labels on the upper > subplots using the following code: > for subplot in self.subplotArr[0:-1]: > # can't find API equivalent of pylab.setp so... > for ticklabel in subplot.get_xticklabels(): > ticklabel.set_visible(False) > since it's a strip chart and new X ticks are constantly being > created as > time advances. Thank heavens it doesn't show labels on the new ones. > > > Don't know if it is useful for you or not, but there is also > the .label_outer() function that will set the visibility of the axes > tick labels based on which subplot they are in the figure. Very nice! Much easier to read than setting each tick invisible. Regards, -- Russell |