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

Showing 10 results of 10

From: Darren D. <dar...@co...> - 2007年11月02日 20:39:42
On Thursday 27 September 2007 05:54:45 pm Stefan van der Walt wrote:
> Hi all,
>
> When trying to print a matplotlib-generated .eps file with CUPS, it
> aborts, complaining
>
> No %%Pages: comment in header!
>
> An easy workaround is to do
>
> eps2eps broken.eps fixed.eps
>
> but maybe the %%Pages directive should be included in the output?
According to the EPS specification 
(http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf), the 
only required comments in the header are:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: llx lly urx ury
I have never seen an error from CUPS due to a missing PAGES comment, what 
version of cups are you using?
Darren
From: John H. <jd...@gm...> - 2007年11月02日 19:13:08
On 11/2/07, Eric Firing <ef...@ha...> wrote:
> Now I am not so sure that the use of lists in errorbar is a fossil, but
> I certainly don't understand it. Would you give a summary of when one
> can and cannot use arrays in axes.py, please? The errorbar and bar
> methods seem to be the only victims of this restriction, and it looks
> like some of the instances are accomplishing nothing--the arguments get
> converted to arrays with the next method call anyway. I haven't tried
> to trace things carefully, obviously.
I just wrote some related stuff in the other thread, but will jump in
here. I think I may be being overzealous in my avoidance of arrays. What
we cannot assume is that asarray is creating an array of floats, so we
cannot do scalar array operations, eg 2*x. But we should be able to
assume object arrays, with indexing, and element wise opertations
which are well defined, eg for the canonical date example.
In [3]: import datetime
In [4]: date0 = datetime.date(2004,1,1)
In [5]: days = datetime.timedelta(days=1)
In [6]: d = [date0, date0+days, date0+2*days, date0+3*days]
In [7]: import numpy as n
In [8]: x1 = n.array(d)
In [9]: xerr = n.array([days]*len(x1))
In [10]: x1.dtype
Out[10]: dtype('object')
In [11]: x2.dtype
------------------------------------------------------------
Traceback (most recent call last):
 File "<ipython console>", line 1, in ?
NameError: name 'x2' is not defined
In [12]: xerr.dtype
Out[12]: dtype('object')
In [13]: x1 + xerr
Out[13]: array([2004年01月02日, 2004年01月03日, 2004年01月04日, 2004年01月05日], dtype=object)
The reason we are bumping into so may problems with errorbar is not
only because it is complex, but because it is doing more arithmetic
than other plotting code.
Ted, can you clarify what kinds of operations are permitted with your
iterable unit objects if they are initialized into numpy object
arrays?
From: John H. <jd...@gm...> - 2007年11月02日 18:53:37
On 11/2/07, Eric Firing <ef...@ha...> wrote:
> It looks to me like there are several fossils from John's early work
> with units support--places where list comprehensions are used instead of
> arrays "to preserve units". I don't think these are directly causing
> the problem, but if they are indeed fossils they should certainly be
> corrected.
I just fixed this in svn -- the unit support has certainly proven
fragile in the errorbar code, because the inability to assume arrays
is a major handicap, and barring oneself from all the numpyisms like
logical masks and fancy indexing, not to mention the performance that
comes with it, is frustrating.
The unit support code grew out of an attempt to solve a somewhat
important use case: the JPL has unit enabled data structures that are
iterable but do not implement the basic array uses we need.
Apparently, they use these objects with mpl and are unable to wrap
them or modify them because they must also be passed on to other
libraries in their system, which they also do not control, unmodified.
 The current mpl implementation, in which users can register their
objects with converter classes, works fine and supports the very nice
ability to pass in datetime objects directly to mpl (this is another
clear use case where you want to work with some object you can't wrap
or modify).
I think it is a bit too onerous inside mpl to not be able to assume we
can do array operations, so I will give this some more thought on how
we can satisfy these use cases w/o writing tedious, fragile code.
JDH
From: Eric F. <ef...@ha...> - 2007年11月02日 18:33:41
John,
Now I am not so sure that the use of lists in errorbar is a fossil, but 
I certainly don't understand it. Would you give a summary of when one 
can and cannot use arrays in axes.py, please? The errorbar and bar 
methods seem to be the only victims of this restriction, and it looks 
like some of the instances are accomplishing nothing--the arguments get 
converted to arrays with the next method call anyway. I haven't tried 
to trace things carefully, obviously.
Eric
From: Eric F. <ef...@ha...> - 2007年11月02日 18:17:30
Darren Dale wrote:
> The errorbar_limits.py demo is failing on my machine:
> 
> Traceback (most recent call last):
> File "errorbar_limits.py", line 13, in <module>
> P.errorbar(x,y,yerr=0.1,capsize=3)
> File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608, 
> in errorbar
> ret = gca().errorbar(*args, **kwargs)
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3735, in 
> errorbar
> caplines.extend( self.plot(x, lower, 'k_', **plot_kw) )
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 2634, in 
> plot
> for line in self._get_lines(*args, **kwargs):
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 403, in 
> _grab_next_args
> for seg in self._plot_3_args(remaining, **kwargs):
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 349, in 
> _plot_3_args
> x, y, multicol = self._xy_from_xy(x, y)
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 244, in 
> _xy_from_xy
> assert nrx == nry, 'Dimensions of x and y are incompatible'
> AssertionError: Dimensions of x and y are incompatible
> 
> 
> It looks like the API has changed and does not allow scalar arguments for the 
> errors. I tried setting yerr=ones(len(y))*0.1, and got a different error: 
> 
> Traceback (most recent call last):
> File "errorbar_limits.py", line 18, in <module>
> P.errorbar(x,y,yerr=yerr, uplims=True)
> File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608, 
> in errorbar
> ret = gca().errorbar(*args, **kwargs)
> File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3738, in 
> errorbar
> caplines.extend( self.plot(x[uplims], upper[uplims], ls='None', 
> marker=mlines.CARETUP, **plot_kw) )
> TypeError: only integer arrays with one element can be converted to an index
> 
> 
> Maybe the patch commited on September 3 needs to be revisited.
I'm not sure that the problem is just in that patch, or in that patch at 
all--the whole errorbar method needs to be reviewed. (The patch 
contributes to the extent that it makes the code much more complicated.)
It looks to me like there are several fossils from John's early work 
with units support--places where list comprehensions are used instead of 
arrays "to preserve units". I don't think these are directly causing 
the problem, but if they are indeed fossils they should certainly be 
corrected.
Eric
> 
> Darren
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Darren D. <dar...@co...> - 2007年11月02日 17:41:00
Bug 1750527 reports that, with usetex, it is not possible to rotate text or 
ticklabels by 45 degrees. It looks like this limitation is caused by 
_backend_agg's draw_image method, which does not accept an angle argument, 
while draw_text_image does. I am out of my depth in _backend_agg.cpp, can 
draw_image be updated to accept an angle?
Darren
From: Darren D. <dar...@co...> - 2007年11月02日 16:16:59
The errorbar_limits.py demo is failing on my machine:
Traceback (most recent call last):
 File "errorbar_limits.py", line 13, in <module>
 P.errorbar(x,y,yerr=0.1,capsize=3)
 File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608, 
in errorbar
 ret = gca().errorbar(*args, **kwargs)
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3735, in 
errorbar
 caplines.extend( self.plot(x, lower, 'k_', **plot_kw) )
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 2634, in 
plot
 for line in self._get_lines(*args, **kwargs):
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 403, in 
_grab_next_args
 for seg in self._plot_3_args(remaining, **kwargs):
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 349, in 
_plot_3_args
 x, y, multicol = self._xy_from_xy(x, y)
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 244, in 
_xy_from_xy
 assert nrx == nry, 'Dimensions of x and y are incompatible'
AssertionError: Dimensions of x and y are incompatible
It looks like the API has changed and does not allow scalar arguments for the 
errors. I tried setting yerr=ones(len(y))*0.1, and got a different error: 
Traceback (most recent call last):
 File "errorbar_limits.py", line 18, in <module>
 P.errorbar(x,y,yerr=yerr, uplims=True)
 File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608, 
in errorbar
 ret = gca().errorbar(*args, **kwargs)
 File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3738, in 
errorbar
 caplines.extend( self.plot(x[uplims], upper[uplims], ls='None', 
marker=mlines.CARETUP, **plot_kw) )
TypeError: only integer arrays with one element can be converted to an index
Maybe the patch commited on September 3 needs to be revisited.
Darren
From: John H. <jd...@gm...> - 2007年11月02日 13:19:46
On 11/2/07, Manuel Metz <mm...@as...> wrote:
> Hi,
> attached is a patch for contour.py against latest svn that adds support
> for the keyword "linestyles" for contour plots. Could someone commit
> that to svn?
Thanks Manuel -- I applied this to svn.
JDH
From: Darren D. <dar...@co...> - 2007年11月02日 12:57:40
Thanks. I updated the gs version checker in svn.
On Thursday 01 November 2007 05:29:03 pm Gary Ruben wrote:
> Yep. Works.
>
> C:\WINDOWS>gswin32c --version
> 8.51
>
> Darren Dale wrote:
> > gs --version works with AFPL. Could someone please check that this works
> > on windows: gswin32c --version
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Manuel M. <mm...@as...> - 2007年11月02日 11:05:37
Hi,
attached is a patch for contour.py against latest svn that adds support 
for the keyword "linestyles" for contour plots. Could someone commit 
that to svn?
Manuel

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