SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(3)
2
3
4
5
6
(2)
7
(3)
8
(6)
9
(5)
10
(7)
11
(3)
12
(5)
13
(6)
14
(6)
15
(8)
16
(12)
17
(12)
18
(4)
19
(8)
20
(26)
21
(21)
22
(12)
23
(4)
24
25
26
27
(1)
28
29
(6)
30
(9)
31
(12)

Showing 6 results of 6

From: Andrew S. <str...@as...> - 2006年03月13日 17:04:13
James Evans wrote:
>Andrew,
>
>The easiest way to see this bug is to use the QtAgg backend, then type the following:
>
> 
>
>>>>import pylab
>>>>pylab.figure(figsize=(1, 1))
>>>>pylab.show()
>>>> 
>>>>
>
>and the window you get will most definitly not be using the sizes you set forth.
> 
>
OK, I see the issue using QtAgg. Patched in 2143.
I thought I tested the resize events by, well, resizing windows by
dragging the corner, and everything seemed fine. Strangely, though, the
patch I just applied doesn't seem necessary on a Qt (not QtAgg) backend.
From: John H. <jdh...@ac...> - 2006年03月13日 16:27:50
>>>>> "James" == James Evans <jre...@ea...> writes:
 James> the problem being that this will only set the property of
 James> the first 'n' labels, where 'n' is the number of tickmarks
 James> present when you initially set the property. So if the
 James> number of tick marks increases when zooming in (or out),
 James> then the remaining labels above 'n' will not have the
 James> property set. You can see this by running the example
 James> script "simple_plot.py" and rotating the labels (as above)
 James> and then zooming in and out until you have more than the
 James> initial number of ticks.
Hmm, this shouldn't happen. There is logic in the axis class when
creating a new tick to copy the properties of the existing ticks.
There is a "protoTick" ie the prototype tick, which is used to get the
properties when creating a new tick. The Axis._copy_tick_props method
is used to transfer the properties from the protoTick to the new tick.
That in turn calls the "update_from" method of the text instances,
which does copy the rotation value.
So it *should* work on a quick code read, but clearly it doesn't from
your reported problem. You may want to poke around this section of
the code to see where the logic is failing.
JDH
From: James E. <jre...@ea...> - 2006年03月13日 16:10:47
John,
I had noticed that as well, and when I used it I was rotating the labels by "-90" degrees to
see them more clearly. But doing so uncovers a bug/feature when using any AutoTickLocator
mechanism.
When you want to rotate the labels, you do so by doing something like the following:
>>> ax = subplot(111)
>>> plot_date(dates, values, '-')
>>> labels.ax.get_xticklabels()
>>> setp(labels, rotation=-90)
the problem being that this will only set the property of the first 'n' labels, where 'n' is
the number of tickmarks present when you initially set the property. So if the number of
tick marks increases when zooming in (or out), then the remaining labels above 'n' will not
have the property set. You can see this by running the example script "simple_plot.py" and
rotating the labels (as above) and then zooming in and out until you have more than the
initial number of ticks.
Perhaps a solution would be to set "default" properties for the axis in question, which
would then always set those properties for the tickmarks, unless specifically overridden by
the user as in the above case.
--James Evans
-----Original Message-----
From: John Hunter [mailto:jdh...@ac...] 
Sent: Monday, March 13, 2006 7:54 AM
To: Andrew Straw
Cc: James Evans; mat...@li...
Subject: Re: [matplotlib-devel] AutoDateLocator
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> Committed into svn 2142.
Thanks for the patch James, the auto date functionality is very
nice. Just a minor comment. In the load_converter.py example, the
default ticks overlap each other with the default window size. I
think we are using a format string that is too long for this date
range.
JDH
From: John H. <jdh...@ac...> - 2006年03月13日 15:55:34
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> Committed into svn 2142.
Thanks for the patch James, the auto date functionality is very
nice. Just a minor comment. In the load_converter.py example, the
default ticks overlap each other with the default window size. I
think we are using a format string that is too long for this date
range.
JDH
From: James E. <jre...@ea...> - 2006年03月13日 15:49:01
Andrew,
The easiest way to see this bug is to use the QtAgg backend, then type the following:
>>> import pylab
>>> pylab.figure(figsize=(1, 1))
>>> pylab.show()
and the window you get will most definitly not be using the sizes you set forth.
--James Evans
-----Original Message-----
From: Andrew Straw [mailto:str...@as...] 
Sent: Sunday, March 12, 2006 12:01 PM
To: James Evans; mat...@li...
Subject: Re: [matplotlib-devel] (no subject)
James Evans wrote:
>When using the Qt backend, resize events were not
>getting passed along properly so the window was created
>based off of some other criteria. The attatched patch
>file will fix the problem and make the window be
>resized appropriatly on construction.
>
> 
>
Admittedly I'm no Qt person (this was my opportunity to install Qt on my
system), but I couldn't find any problems with the current
implementation. Could you give a specific, reproducible problem case
that your patch fixes?
Cheers!
Andrew
From: Eric F. <ef...@ha...> - 2006年03月13日 07:48:35
Tennessee,
Maybe I missed it, but I did not see any reply to your message. We 
welcome simple scripts that expose bugs--and the simpler the better. If 
something more than a simple script is required, then instead of sending 
 a big file to the list, you could put it on an ftp server if you have 
access to one, or send it to one of us off-list upon request.
Tennessee Leeuwenburg wrote:
[...]
> I wrote some code to generate a pair of lists about 300 elements long,
> and plotted them. I found that the line plot didn't have all the data
> points connected.
What backend were you using, and what operating system? What mpl 
version? Was the lack of connectedness at the level of a missing 
pixel, or was a whole line segment missing?
> 
> When I saved to SVG, the output was correct.
So it sounds like it must be a problem with a particular backend.
> 
> Also, when I tried to perform a scatter plot, I got runtime errors and
> no plot was drawn. These problems occur 100% of the time on my machine
> with my test files.
Until a recent change in SVN, scatter required an array, not a list, for 
its colors argument. Could this be the problem in your case?
> 
> I'm not sure if this list accepts files or not, but I am happy to
> provide the code and sample files which demonstrate this error, and/or
> respond to the bugfixing process.
Eric

Showing 6 results of 6

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 によって変換されたページ (->オリジナル) /