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
(19) |
2
(30) |
3
(14) |
4
(1) |
5
(16) |
6
(7) |
7
(12) |
8
(14) |
9
(35) |
10
(16) |
11
(31) |
12
(6) |
13
(14) |
14
(13) |
15
(20) |
16
(15) |
17
(27) |
18
(5) |
19
(10) |
20
(22) |
21
(20) |
22
(30) |
23
(25) |
24
(11) |
25
(2) |
26
(2) |
27
(23) |
28
(20) |
29
(26) |
30
(25) |
31
(7) |
|
On Fri, Jul 3, 2009 at 1:05 PM, guillaume ranquet<gra...@wy...> wrote: > but something sounds plain wrong, It sounds like there's too much > useless calculations and data copied. > Well, if you think something is wrong, I guess you may have chosen a wrong tool. MPL is mainly for 2d plotting, and not very strong for animation although it supports some. > would it be a good idea to have an array of 1000 points and shift it > left every round to add the new point at the end? Shifting array should be done by numpy, not by matplotlib (I'm not sure if numpy can do this in place). Anyhow, what actually matter is that even if you shift the array, matplotlib will draw all the points in the array every time. One possible option in your case is to save your plot as an image in each round. And at the next round, you plot the newly available data upon the shifted image. http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk2.html Note that the above example requires svn version of matplotlib. Regards, -JJ
The example in the cookbool works fine with svn version of mpl. So, it seems that this bug has been fixed. Anyhow, which command (contour or contourf) draws the vertical lines? I bet it is contourf. And set_edgecolor("none") for return value of contourf should have some effect. Did you redraw the figure? Regards, -JJ On Thu, Jul 2, 2009 at 9:20 PM, Rick Muller<rpm...@gm...> wrote: > Oh, and I'm using the Agg backend, I think, whatever is the default. > > On Thu, Jul 2, 2009 at 7:19 PM, Rick Muller <rpm...@gm...> wrote: >> >> JJ >> >> Thanks for the tips. I had seen one of those posts whilst googling around >> for the bug, but discounted it because I'm not using an alpha value. >> >> Here are links to one of the cookbook examples, and one of the files that >> I want to plot: >> http://files.getdropbox.com/u/533499/griddata-test.png >> http://files.getdropbox.com/u/533499/silicon_donor_10_newplot.png >> >> I'm using Mac OS 10.5.7, Python 2.6.2, and MPL 0.98.5.3. >> >> I don't know which bug in the thread you were referring to. I tried the >> >> >>> for c in CS.collections: c.set_edgecolor("none") >> >> fix, but it didn't have any effect. >> >> On Thu, Jul 2, 2009 at 4:49 PM, Jae-Joon Lee <lee...@gm...> wrote: >>> >>> The dropbox link is broken (you need a public url). >>> What version of mpl and what backend are you using? >>> >>> There was a similar problem which has now been fixed. >>> Try the work-around described in the thread below, and see if works. >>> >>> http://www.nabble.com/problems-with-contourf---alpha-td22553269.html >>> >>> >>> Regards, >>> >>> -JJ >>> >>> >>> >>> On Thu, Jul 2, 2009 at 4:26 PM, Rick Muller<rpm...@gm...> wrote: >>> > When I do contourf plots in matplotlib, I get lines connecting the >>> > contour >>> > levels. This doesn't only appear to be an artifact of my plotting >>> > algorithms, it appears in this example from the matplotlib cookbook: >>> > >>> > >>> > http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data >>> > >>> > at least on my mac. >>> > >>> > (I think this is the link to the output I get from that: >>> > https://dl-web.getdropbox.com/get/Photos/griddata-test.png?w=007c9af9 >>> > ) >>> > >>> > Is there a way to keep these lines from happening? If not, is there a >>> > way to >>> > turn off all of the black lines separating the contour levels? >>> > >>> > Thanks in advance, >>> > >>> > Rick >>> > >>> > -- >>> > Rick Muller >>> > rpm...@gm... >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > >>> > _______________________________________________ >>> > Matplotlib-users mailing list >>> > Mat...@li... >>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> > >>> > >> >> >> >> -- >> Rick Muller >> rpm...@gm... > > > > -- > Rick Muller > rpm...@gm... >
Changing the properties of the individual grid line can be tricky. The easier way in my opinion is to draw another line with thinker linewidth. ax=subplot(111) ax.grid() from matplotlib.transforms import blended_transform_factory # for x=0 trans = blended_transform_factory(ax.transData, ax.transAxes) ax.plot([0,0], [0,1], "-", transform=trans, color="red", linewidth=2, zorder=5) # for y=0 trans = blended_transform_factory(ax.transAxes, ax.transData) ax.plot([0,1], [0,0], "-", transform=trans, color="blue", linewidth=2, zorder=5) -JJ On Wed, Jul 1, 2009 at 8:40 AM, Torsten Bronger<br...@ph...> wrote: > Hallöchen! > > I have a grid in my plot, but additionally I'd like to highlight the > "zero" axes, where x=0 or y=0, e.g. by showing them in red, or with > thicker lines. How is this possible? > > Tschö, > Torsten. > > -- > Torsten Bronger, aquisgrana, europa vetus > Jabber ID: tor...@ja... > or http://bronger-jmp.appspot.com > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On Fri, Jul 3, 2009 at 12:05 PM, guillaume ranquet <gra...@wy...>wrote: > Ryan May wrote: > > > > > > On Fri, Jul 3, 2009 at 8:32 AM, guillaume ranquet <gra...@wy... > > <mailto:gra...@wy...>> wrote: > > > > Hi list, > > > > I'm trying to get a dynamic plot running. > > I'm stuck at feeding the data to the lines. > > > > basically I've a callback that receives a (y,x1,x2) tuple and I would > > like to add the 2 points to the two matplotlib.lines of the figure. > > > > should I handle a copy of xdata/ydata and gives the updated set to > > set_x/ydata() for one point? > > I tried to get_data() and append to it, but It's a MaskedArray and I > > guess it means its a really bad idea to try this way. > > > > probably a new class inheriting figure and overriding > > get_data()//set_data() could do the trick? > > > > > > any advice on a _clean_ design I could use? > > > > > > You can add a value to an array using np.concatenate: > > > > x,y = line.get_data() > > x = np.concatenate((x, [x0])) > > y = np.concatenate((y, [y0])) > > line.set_data([x,y]) > > > > This is rather inefficient however if you're adding lots of points or if > > there are just a lot of point in x any in general. If you know how many > > points you're going to end up with, you could create mostly empty > > MaskedArrays and keep the extra points masked until you get the data. > > > > Ryan > > > > -- > > Ryan May > > Graduate Research Assistant > > School of Meteorology > > University of Oklahoma > > > thanks Ryan, > It does work and I'll use that for now. > the idea is to have a gkrellm-like UI in which you can monitor system > usage 'live' > I guess I could have a 'window of event', just keeping the last 1000 > points and move the xlim as a window: > ax.set_xlim(xmin=currentmin+time,xmax=currentmax+time) > but something sounds plain wrong, It sounds like there's too much > useless calculations and data copied. > > would it be a good idea to have an array of 1000 points and shift it > left every round to add the new point at the end? I think your best bet in this case is to just keep a python list of your 1000 points around: #Remove old point and add new one x_list.pop(0) x_list.append(x0) y_list.pop(0) y_list.append(y0) line.set_xdata(np.array(x_list)) line.set_ydata(np.array(y_list)) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Ryan May wrote: > > > On Fri, Jul 3, 2009 at 8:32 AM, guillaume ranquet <gra...@wy... > <mailto:gra...@wy...>> wrote: > > Hi list, > > I'm trying to get a dynamic plot running. > I'm stuck at feeding the data to the lines. > > basically I've a callback that receives a (y,x1,x2) tuple and I would > like to add the 2 points to the two matplotlib.lines of the figure. > > should I handle a copy of xdata/ydata and gives the updated set to > set_x/ydata() for one point? > I tried to get_data() and append to it, but It's a MaskedArray and I > guess it means its a really bad idea to try this way. > > probably a new class inheriting figure and overriding > get_data()//set_data() could do the trick? > > > any advice on a _clean_ design I could use? > > > You can add a value to an array using np.concatenate: > > x,y = line.get_data() > x = np.concatenate((x, [x0])) > y = np.concatenate((y, [y0])) > line.set_data([x,y]) > > This is rather inefficient however if you're adding lots of points or if > there are just a lot of point in x any in general. If you know how many > points you're going to end up with, you could create mostly empty > MaskedArrays and keep the extra points masked until you get the data. > > Ryan > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma thanks Ryan, It does work and I'll use that for now. the idea is to have a gkrellm-like UI in which you can monitor system usage 'live' I guess I could have a 'window of event', just keeping the last 1000 points and move the xlim as a window: ax.set_xlim(xmin=currentmin+time,xmax=currentmax+time) but something sounds plain wrong, It sounds like there's too much useless calculations and data copied. would it be a good idea to have an array of 1000 points and shift it left every round to add the new point at the end? ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
On Fri, Jul 3, 2009 at 8:32 AM, guillaume ranquet <gra...@wy...>wrote: > Hi list, > > I'm trying to get a dynamic plot running. > I'm stuck at feeding the data to the lines. > > basically I've a callback that receives a (y,x1,x2) tuple and I would > like to add the 2 points to the two matplotlib.lines of the figure. > > should I handle a copy of xdata/ydata and gives the updated set to > set_x/ydata() for one point? > I tried to get_data() and append to it, but It's a MaskedArray and I > guess it means its a really bad idea to try this way. > > probably a new class inheriting figure and overriding > get_data()//set_data() could do the trick? > > > any advice on a _clean_ design I could use? > You can add a value to an array using np.concatenate: x,y = line.get_data() x = np.concatenate((x, [x0])) y = np.concatenate((y, [y0])) line.set_data([x,y]) This is rather inefficient however if you're adding lots of points or if there are just a lot of point in x any in general. If you know how many points you're going to end up with, you could create mostly empty MaskedArrays and keep the extra points masked until you get the data. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Hi list, I'm trying to get a dynamic plot running. I'm stuck at feeding the data to the lines. basically I've a callback that receives a (y,x1,x2) tuple and I would like to add the 2 points to the two matplotlib.lines of the figure. should I handle a copy of xdata/ydata and gives the updated set to set_x/ydata() for one point? I tried to get_data() and append to it, but It's a MaskedArray and I guess it means its a really bad idea to try this way. probably a new class inheriting figure and overriding get_data()//set_data() could do the trick? any advice on a _clean_ design I could use? thanks. ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
Michael Droettboom schrieb: > This should now be fixed on the maintenance branch and trunk. A Numpy > array allocation was not being NULL-checked in _path.cpp:affine_transform. > > I know a MemoryError doesn't help the user much more than a segfault, > but it always makes me feel better to get a real Python exception rather > than exploding ;) > > Mike Hi All, thanks for the bugfix. I also got the segfault, but forgot to wrote this. Is there a possibility to limit the maximum points shown ? And sorry that i can not post more of my code. My program is to big. Maybe this is a feature request. :-) It would be nice to set up a maximum limit and compute a average. I doesnt know which way is the fastest. I only execute the plot command three times but every plot command plots round about 15 Mill. points. regards Markus
Hi, Please change plotnew to: def plotnew(self): #self.f.clf() # clear the figure self.t=arange(0.0,5.0,0.05) self.s1=sin(2*pi*self.t) self.s2=self.s1*-1 self.a.plot(self.t,self.s1,self.t,self.s2) self.canvas.show() I added self.canvas.show() This works for me. Gregor Skrt-2 wrote: > > 1. Where can I find a good tutorial or set of examples for > embeding matplotlib in Tkinter ? > 2. Problem: I created a simple test with Tkinter. First I plot my > graph on __init__ (it works ok). Then I want to clear graph and > plot on the same canvas with different parameters. The thing is > that plot shows up only when I resize my window. Any idea what > could I be doing wrong ? I was trying draw method but it doasn't > work... > > > Here is my code: > > Thanks for your help. Gregor Skrt > > > > > #!/usr/bin/env python > > import matplotlib > matplotlib.use('TkAgg') > > from numpy import arange, sin, pi , cos > from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, > NavigationToolbar2TkAgg > from matplotlib.figure import Figure > > from Tkinter import * > import sys > > class App: > def __init__(self,master): > frame = Frame(master) > frame.pack() > > self.button= > Button(frame,text='Quit',fg="black",command=frame.quit) > self.button.pack(side=LEFT) > > self.hi_there=Button(frame,text="Plot Inverse > sin",command=self.plotnew) > self.hi_there.pack(side=LEFT) > > # place a graph somewhere here > self.f = Figure(figsize=(5,4), dpi=100) > self.a = self.f.add_subplot(111) > self.t = arange(0.0,3.0,0.01) > self.s = sin(2*pi*self.t) > self.a.grid(True) > self.a.set_xlabel("cas [s]") > self.a.set_ylabel("amplituda") > self.a.plot(self.t,self.s) > > self.canvas = FigureCanvasTkAgg(self.f, master=root) > self.canvas.show() > self.canvas.get_tk_widget().pack(side=TOP, fill=BOTH, expand=1) > > def plotnew(self): > #get values from controller board, database > #self.f.clf() # clear the figure > self.t=arange(0.0,5.0,0.05) > self.s1=sin(2*pi*self.t) > self.s2=self.s1*-1 > self.a.plot(self.t,self.s1,self.t,self.s2) > > > root=Tk() > app=App(root) > root.mainloop() > > #!/usr/bin/env python > > import matplotlib > matplotlib.use('TkAgg') > > from numpy import arange, sin, pi , cos > from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, > NavigationToolbar2TkAgg > from matplotlib.figure import Figure > > from Tkinter import * > import sys > > class App: > def __init__(self,master): > frame = Frame(master) > frame.pack() > > self.button= Button(frame,text='Quit',fg="black",command=frame.quit) > self.button.pack(side=LEFT) > > self.hi_there=Button(frame,text="Plot Inverse sin",command=self.plotnew) > self.hi_there.pack(side=LEFT) > > # place a graph somewhere here > self.f = Figure(figsize=(5,4), dpi=100) > self.a = self.f.add_subplot(111) > self.t = arange(0.0,3.0,0.01) > self.s = sin(2*pi*self.t) > self.a.grid(True) > self.a.set_xlabel("cas [s]") > self.a.set_ylabel("amplituda") > self.a.plot(self.t,self.s) > > self.canvas = FigureCanvasTkAgg(self.f, master=root) > self.canvas.show() > self.canvas.get_tk_widget().pack(side=TOP, fill=BOTH, expand=1) > > def plotnew(self): > #self.f.clf() # clear the figure > self.t=arange(0.0,5.0,0.05) > self.s1=sin(2*pi*self.t) > self.s2=self.s1*-1 > self.a.plot(self.t,self.s1,self.t,self.s2) > > > root=Tk() > app=App(root) > root.mainloop() > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a 600ドル discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Tkinter-problems-tp22164234p24318566.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Trying to plot anything with any dashed pattern causes the error: Python 2.6.2 (r262:71600, Jun 20 2009, 12:18:19) Type "copyright", "credits" or "license" for more information. IPython 0.9.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: from pylab import * matplotlib data path /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/mpl-data loaded rc file /Users/adam/.matplotlib/matplotlibrc matplotlib version 0.98.5.3 verbose.level helpful interactive is True units is True platform is darwin $HOME=/Users/adam CONFIGDIR=/Users/adam/.matplotlib Using fontManager instance from /Users/adam/.matplotlib/fontList.cache backend MacOSX version unknown In [2]: plot([0,1],'--') Out[2]: [<matplotlib.lines.Line2D object at 0x102a58490>] In [3]: Thu Jul 2 20:46:44 eta.colorado.edu Python-64[33793] <Error>: CGContextSetLineDash: invalid dash array: negative lengths are not allowed. On Thu, Jul 2, 2009 at 8:44 PM, Michiel de Hoon<mjl...@ya...> wrote: > >> I can't draw dashed lines. > > In principle, you should be able to draw dashed lines with the MacOSX backend. Can you post a complete script that triggers this error? > >> Thu Jul 2 14:51:48 Python-64[56094] <Error>: >> CGContextSetLineDash: invalid >> dash array: negative lengths are not allowed. > > --Michiel. > > > --- On Thu, 7/2/09, keflavich <kef...@gm...> wrote: > >> From: keflavich <kef...@gm...> >> Subject: Re: [Matplotlib-users] ipython threading fails with macosx backend >> To: mat...@li... >> Date: Thursday, July 2, 2009, 4:54 PM >> >> OK, thanks. I don't really know why it's failing, but >> I'm going to continue >> trying to get other backends installed to test them. >> >> I also now have independent reasons not to use the MacOSX >> backend: >> >> Thu Jul 2 14:51:48 Python-64[56094] <Error>: >> CGContextSetLineDash: invalid >> dash array: negative lengths are not allowed. >> >> >> >> I can't draw dashed lines. >> >> Adam >> -- >> View this message in context: http://www.nabble.com/ipython-threading-fails-with-macosx-backend-tp24311071p24313852.html >> Sent from the matplotlib - users mailing list archive at >> Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > >
> I can't draw dashed lines. In principle, you should be able to draw dashed lines with the MacOSX backend. Can you post a complete script that triggers this error? > Thu Jul 2 14:51:48 Python-64[56094] <Error>: > CGContextSetLineDash: invalid > dash array: negative lengths are not allowed. --Michiel. --- On Thu, 7/2/09, keflavich <kef...@gm...> wrote: > From: keflavich <kef...@gm...> > Subject: Re: [Matplotlib-users] ipython threading fails with macosx backend > To: mat...@li... > Date: Thursday, July 2, 2009, 4:54 PM > > OK, thanks. I don't really know why it's failing, but > I'm going to continue > trying to get other backends installed to test them. > > I also now have independent reasons not to use the MacOSX > backend: > > Thu Jul 2 14:51:48 Python-64[56094] <Error>: > CGContextSetLineDash: invalid > dash array: negative lengths are not allowed. > > > > I can't draw dashed lines. > > Adam > -- > View this message in context: http://www.nabble.com/ipython-threading-fails-with-macosx-backend-tp24311071p24313852.html > Sent from the matplotlib - users mailing list archive at > Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Massimo Di Stefano wrote: > Hi All, > > > i'm starting to learn matplotlib, > for my study i need to parse the nmea sentence from a gps > and plot a "sky graphic" to plot satellite visibility. > > (i tried to write code from scratch ... it works but my teacher > suggest me to not reinvent the well, so, to have a good nema parser, i > installed gpsd ... it has in the source code a nice python code that > allow me to retrieve satellite constallation iformation). > > now i need to learn how to produce a sky plot, > have you any suggestion on how to produce such kind of graphic ? > Massimo: I've no idea what a "sky plot" is. Can you point us to an example? -Jeff > thanks to all for any suggestion! > > Massimo. > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Oh, and I'm using the Agg backend, I think, whatever is the default. On Thu, Jul 2, 2009 at 7:19 PM, Rick Muller <rpm...@gm...> wrote: > JJ > > Thanks for the tips. I had seen one of those posts whilst googling around > for the bug, but discounted it because I'm not using an alpha value. > > Here are links to one of the cookbook examples, and one of the files that I > want to plot: > http://files.getdropbox.com/u/533499/griddata-test.png > http://files.getdropbox.com/u/533499/silicon_donor_10_newplot.png > > I'm using Mac OS 10.5.7, Python 2.6.2, and MPL 0.98.5.3. > > I don't know which bug in the thread you were referring to. I tried the > > >>> for c in CS.collections: c.set_edgecolor("none") > > fix, but it didn't have any effect. > > > On Thu, Jul 2, 2009 at 4:49 PM, Jae-Joon Lee <lee...@gm...> wrote: > >> The dropbox link is broken (you need a public url). >> What version of mpl and what backend are you using? >> >> There was a similar problem which has now been fixed. >> Try the work-around described in the thread below, and see if works. >> >> http://www.nabble.com/problems-with-contourf---alpha-td22553269.html >> >> >> Regards, >> >> -JJ >> >> >> >> On Thu, Jul 2, 2009 at 4:26 PM, Rick Muller<rpm...@gm...> wrote: >> > When I do contourf plots in matplotlib, I get lines connecting the >> contour >> > levels. This doesn't only appear to be an artifact of my plotting >> > algorithms, it appears in this example from the matplotlib cookbook: >> > >> > >> http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data >> > >> > at least on my mac. >> > >> > (I think this is the link to the output I get from that: >> > https://dl-web.getdropbox.com/get/Photos/griddata-test.png?w=007c9af9 >> > ) >> > >> > Is there a way to keep these lines from happening? If not, is there a >> way to >> > turn off all of the black lines separating the contour levels? >> > >> > Thanks in advance, >> > >> > Rick >> > >> > -- >> > Rick Muller >> > rpm...@gm... >> > >> > >> ------------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > >> > >> > > > > -- > Rick Muller > rpm...@gm... > -- Rick Muller rpm...@gm...
JJ Thanks for the tips. I had seen one of those posts whilst googling around for the bug, but discounted it because I'm not using an alpha value. Here are links to one of the cookbook examples, and one of the files that I want to plot: http://files.getdropbox.com/u/533499/griddata-test.png http://files.getdropbox.com/u/533499/silicon_donor_10_newplot.png I'm using Mac OS 10.5.7, Python 2.6.2, and MPL 0.98.5.3. I don't know which bug in the thread you were referring to. I tried the >>> for c in CS.collections: c.set_edgecolor("none") fix, but it didn't have any effect. On Thu, Jul 2, 2009 at 4:49 PM, Jae-Joon Lee <lee...@gm...> wrote: > The dropbox link is broken (you need a public url). > What version of mpl and what backend are you using? > > There was a similar problem which has now been fixed. > Try the work-around described in the thread below, and see if works. > > http://www.nabble.com/problems-with-contourf---alpha-td22553269.html > > > Regards, > > -JJ > > > > On Thu, Jul 2, 2009 at 4:26 PM, Rick Muller<rpm...@gm...> wrote: > > When I do contourf plots in matplotlib, I get lines connecting the > contour > > levels. This doesn't only appear to be an artifact of my plotting > > algorithms, it appears in this example from the matplotlib cookbook: > > > > > http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data > > > > at least on my mac. > > > > (I think this is the link to the output I get from that: > > https://dl-web.getdropbox.com/get/Photos/griddata-test.png?w=007c9af9 > > ) > > > > Is there a way to keep these lines from happening? If not, is there a way > to > > turn off all of the black lines separating the contour levels? > > > > Thanks in advance, > > > > Rick > > > > -- > > Rick Muller > > rpm...@gm... > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > -- Rick Muller rpm...@gm...