SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(11)
3
(4)
4
(2)
5
(10)
6
(20)
7
(18)
8
(32)
9
(15)
10
(2)
11
(5)
12
(7)
13
(13)
14
(9)
15
(17)
16
(10)
17
(4)
18
(7)
19
(15)
20
(16)
21
(10)
22
(19)
23
(13)
24
(4)
25
(5)
26
(8)
27
(10)
28
(17)
29
(7)
30
(18)
31
(2)

Showing 10 results of 10

From: Christopher B. <c-...@as...> - 2008年05月05日 21:23:51
Hi Mike,
MD> It's worth noting -- these viewer differences do pop up from time to
MD> time. Since I don't have Foxit (or Windows) installed, I wonder if
MD> you could run an experiment. If you generate the PDF with mpl's
MD> Cairo backend, do you see the same behavior? If not, we can
MD> analyse the differences in the PDFs and possibly come up with a
MD> solution that will work.
I'm having real difficulty getting the cairo backend installed. If
anyone has any experience with pkg-config and windows, please let me
know. Specifically, I get the error:
Package 'cairo was not found in the pkg-config search path. Perhaps you
should add the directory containing `'cairo.pc' to the PKG_CONFIG_PATH
environment variable
...although I have, in fact, created this environment variable in windows.
Anyway, I have created a pdf using the wxagg backend, which yields the 
same result (markeredgewidth is always 1 when viewing with foxit). I 
will create a figure tonight from home (kubuntu) using the cairo 
backend, then examine it tomorrow at work (windows/foxit) and report back.
-- 
Christopher Brown, Ph.D.
Department of Speech and Hearing Science
Arizona State University
From: Darren D. <dar...@co...> - 2008年05月05日 19:02:30
On Monday 05 May 2008 02:07:27 pm G Jones wrote:
> Hello,
> I don't know if this is a bug or not, but I notice that
> notify_axes_change is defined in each FigureManager* __init__
> function, and usually it is then passed to
> self.canvas.figure.add_axobserver(notify_axes_change), but this is not
> the case in FigureManagerQt, it is defined but never used in both
> backend_qt and backend_qt4.
Thanks for the report. It was kind of amusing, the line passing 
notify_axes_change to add_axobserver was improperly indented, so it never got 
called. Its fixed in the trunk for both backends.
Darren
From: G J. <gle...@gm...> - 2008年05月05日 18:07:34
Hello,
I don't know if this is a bug or not, but I notice that
notify_axes_change is defined in each FigureManager* __init__
function, and usually it is then passed to
self.canvas.figure.add_axobserver(notify_axes_change), but this is not
the case in FigureManagerQt, it is defined but never used in both
backend_qt and backend_qt4.
Glenn
From: John H. <jd...@gm...> - 2008年05月05日 17:45:52
On Mon, May 5, 2008 at 12:29 PM, Diwaker Gupta <diw...@gm...> wrote:
> I tried several different viewers (gv, kghostview etc), but all of
> them seem to have the same problem. What is strange is that all other
> text on the graph seems to render fine. I'm attaching the EPS for
> reference.
I suspect gv and kghostview are using the same rendering engine, so
these are probably not separate trials. I see the same thing on gv on
my system, but when I zoom in the problem disappears. Thus it looks
like a problem with the gv downsampling algorithm, at least in my
version. It doesn't appear to have anything to do with mpl.
JDH
From: Diwaker G. <diw...@gm...> - 2008年05月05日 17:29:18
On Mon, May 5, 2008 at 5:15 AM, Michael Droettboom <md...@st...> wrote:
> Try different Postscript viewers available on your platform -- it's
> possible one of them may produce better results. And, of course, the most
> important thing with Postscript is how it renders on your printer. If
> you're still seeing non-antialised fonts in everything, please attach the
> .eps file to this list and I'll have a look at it for anything strange.
I tried several different viewers (gv, kghostview etc), but all of
them seem to have the same problem. What is strange is that all other
text on the graph seems to render fine. I'm attaching the EPS for
reference.
Diwaker
-- 
http://floatingsun.net/
From: Michael D. <md...@st...> - 2008年05月05日 12:15:52
Eric Firing wrote:
> Diwaker Gupta wrote:
> 
>> Folks,
>>
>> I'm trying to make a simple plot where the xtick labels are rotated by
>> 45 degrees. The rotation works fine, but it destroys the anti aliasing
>> of the labels. The rest of the plot renders just fine. I'm using the
>> PS backend (savefig to an EPS). Something like this:
>>
>> labels = ["one", "two", "three"]
>> xticks(arange(len(labels)), labels, rotation="45")
>>
>> Is this a known issue? Any work arounds?
>>
>> Thanks,
>> Diwaker
>> 
>
> If your output is Postscript, then the antialiasing of text is being 
> done (or not done) by whatever is rendering your .ps file, not by mpl. 
> So there is nothing mpl can do about it.
> 
Try different Postscript viewers available on your platform -- it's 
possible one of them may produce better results. And, of course, the 
most important thing with Postscript is how it renders on your printer. 
If you're still seeing non-antialised fonts in everything, please attach 
the .eps file to this list and I'll have a look at it for anything strange.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年05月05日 11:59:28
It's worth noting -- these viewer differences do pop up from time to 
time. Since I don't have Foxit (or Windows) installed, I wonder if you 
could run an experiment. If you generate the PDF with mpl's Cairo 
backend, do you see the same behavior? If not, we can analyse the 
differences in the PDFs and possibly come up with a solution that will work.
Cheers,
Mike
Christopher Brown wrote:
> Christopher Brown wrote:
> 
>> With mpl 0.91.2, the markeredgewidth property does not seem to have an 
>> effect when using the pdf backend (seems to always be 1, regardless of 
>> what I set it to, and it seems to be fine with other backends). Here is 
>> a minimal example:
>> 
>
> Interestingly, the error only shows up in the pdf viewer foxit (what I 
> happened to be using at the time). Other viewers display the markers 
> properly. Although it is still unclear to me whether it is an 
> mpl/pdf-backend error or a foxit rendering error.
>
> Sorry to trouble you all.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Eric F. <ef...@ha...> - 2008年05月05日 08:18:44
Diwaker Gupta wrote:
> Folks,
> 
> I'm trying to make a simple plot where the xtick labels are rotated by
> 45 degrees. The rotation works fine, but it destroys the anti aliasing
> of the labels. The rest of the plot renders just fine. I'm using the
> PS backend (savefig to an EPS). Something like this:
> 
> labels = ["one", "two", "three"]
> xticks(arange(len(labels)), labels, rotation="45")
> 
> Is this a known issue? Any work arounds?
> 
> Thanks,
> Diwaker
If your output is Postscript, then the antialiasing of text is being 
done (or not done) by whatever is rendering your .ps file, not by mpl. 
So there is nothing mpl can do about it.
Eric
From: Diwaker G. <diw...@gm...> - 2008年05月05日 07:23:27
Folks,
I'm trying to make a simple plot where the xtick labels are rotated by
45 degrees. The rotation works fine, but it destroys the anti aliasing
of the labels. The rest of the plot renders just fine. I'm using the
PS backend (savefig to an EPS). Something like this:
labels = ["one", "two", "three"]
xticks(arange(len(labels)), labels, rotation="45")
Is this a known issue? Any work arounds?
Thanks,
Diwaker
-- 
http://floatingsun.net/
From: G J. <gle...@gm...> - 2008年05月05日 05:59:15
Hello,
I did some quick tests of using pylab.figure() to create a figure
window, and then accessing the canvas to do blitted animation, which
is working well. I also reimplemented the resizeEvent handler to
update the region to be blitted. However, I have one major problem,
that when I click the X on the figure window, the window closes and
then my application wittingly tries to blit it and gives the error:
 self.SpecCanvas.blit(self.total_bbox)
 File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4agg.py",
line 144, in blit
 self.update(l, self.renderer.height-t, w, h)
RuntimeError: underlying C/C++ object has been deleted
I tried reimplementing the closeEvent handler, but my new handler
never seems to be executed. I am setting the close event handler like
this:
 self.SpecCanvas.closeEvent = closePyl
 def closePyl(self,event):
 print "hi"
 event.ignore()
 self.parent().SpecCanvas = None
Any ideas about how to keep the window from being destroyed before I
have a chance to know about it?
Also, should I be using ion() or ioff() for this type of application?
It seems that either works fine, and I can zoom/pan even while
blitting.
Thanks,
Glenn

Showing 10 results of 10

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /