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
(1) |
2
(7) |
3
|
4
|
5
(16) |
6
(11) |
7
|
8
(1) |
9
(4) |
10
(10) |
11
|
12
(4) |
13
(4) |
14
(5) |
15
(5) |
16
(11) |
17
(3) |
18
(2) |
19
(5) |
20
(2) |
21
(5) |
22
(2) |
23
(2) |
24
|
25
|
26
(4) |
27
(8) |
28
(9) |
29
(9) |
30
(5) |
31
(1) |
Or perhaps the user-visible object doesn't need to be the same PdfFile that is used internally (which I think should be file-like, since when we add better image compression, we will want to pass the PdfFile to the png/jpeg/whatever library to write to). Something like class PdfFileProxy: def __init__(self, filename): self.pdf_file = PdfFile(filename) except the name should be better. -- Jouni K. Seppänen http://www.iki.fi/jks "Drain, Theodore R" <the...@jp...> writes: > Another (still slightly hacky) way might be to define an optional attribute of the file object. Something like this: > > if hasattr( outputFile, "mplFormat" ): > format = getattr( outputFile, "mplFormat" ) > > > Then have set PdfFile.mplFormat to be "pdf". This is a little less hacky in that it doesn't depend on coding a specific class into savefig. > > Ted > >> -----Original Message----- >> From: Michael Droettboom [mailto:md...@st...] >> Sent: Friday, January 02, 2009 7:27 AM >> To: mat...@li... >> Subject: Re: [matplotlib-devel] Multipage pdf files >> >> It's slightly hackish, but would it be possible to do an "isinstance" >> check in savefig, and if the first arg is a PdfFile, set "format" to >> "pdf" automatically, and if "format" is set to something else raise an >> exception? A little hackish because it doesn't necessarily scale to >> other formats easily, but it would prevent the user from shooting >> herself in the foot. >> >> Mike
Eric Firing wrote: > Michael Droettboom wrote: >> Eric Firing wrote: >>> Mike, Jan, >>> >>> Any attempt to normalize the angles to a fixed range of length 2 pi >>> inside of mpl is sure to wreck valid user code; it merely moves the >>> trouble spot to a different angle. >> Thanks for catching this. Clearly that was a bone-headed fix on my >> part... :( >>> >>> In 6731 I reverted the normalization change from 6106, and also >>> improved the r-tick locations in cases where the actual r-data range >>> is small. >>> >>> Mike, of course I realized too late that I should have made the >>> change in the maintenance branch and used svnmerge to propagate it >>> to the trunk; should I just make the change manually in the branch? >> That should work fine. Then run "svnmerge merge ; svn commit" back >> on the trunk to mark it as merged. > > Mike, > > The following is the result of svnmerge merge and svn status; I have > not yet run svn commit because the status output suggests to me that > things are getting merged that perhaps should not, since I don't know > anything about them. Advice? > > Eric > > efiring@manini:~/programs/py/mpl/mpl_trunk$ svnmerge merge -S > v0_98_5_maintproperty 'svnmerge-integrated' set on '.' > > property 'svnmerge-blocked' deleted from '.'. > > --- Merging r6717 through r6732 into '.': > U lib/matplotlib/path.py > > property 'svnmerge-integrated' set on '.' > > property 'svnmerge-blocked' deleted from '.'. > > efiring@manini:~/programs/py/mpl/mpl_trunk$ svn status > M . > ? svnmerge-commit-message.txt > ? doc/build > ? doc/examples > ? doc/_static/inheritance0ca9968ee0.pdf > ? doc/_static/inheritance1bda3e63b5.pdf > ? doc/_static/inheritance829eaf436e.pdf > ? doc/_static/inheritance47732b7b79.pdf > ? doc/_static/inheritance0ca9968ee0.png > ? doc/_static/inheritancecbc02086c0.pdf > ? doc/_static/inheritance1bda3e63b5.png > ? doc/_static/inheritance829eaf436e.png > ? doc/_static/inheritance47732b7b79.png > ? doc/_static/mathmpl > ? doc/_static/inheritancecbc02086c0.png > ? doc/_static/plot_directive > ? doc/_static/examples > M doc/sphinxext/gen_gallery.py > M doc/sphinxext/gen_rst.py > M doc/pyplots/README > ? lib/matplotlib/cbook0.py > ? lib/matplotlib/colors0.py > ? lib/matplotlib/transform.py > ? lib/matplotlib/axes0.py > M lib/matplotlib/path.py > ? examples/tests/ps > ? examples/tests/agg > ? examples/tests/svg > ? examples/tests/pdf > ? examples/tests/template These other modified files all look to be no-ops (they are property-only -- no diffs) -- probably the result of someone else manually backporting changes to the branch and not merging back to the trunk yet. All seemed harmless, so I went ahead and committed the merge. Mike
Michael Droettboom wrote: > Eric Firing wrote: >> Mike, Jan, >> >> Any attempt to normalize the angles to a fixed range of length 2 pi >> inside of mpl is sure to wreck valid user code; it merely moves the >> trouble spot to a different angle. > Thanks for catching this. Clearly that was a bone-headed fix on my > part... :( >> >> In 6731 I reverted the normalization change from 6106, and also >> improved the r-tick locations in cases where the actual r-data range >> is small. >> >> Mike, of course I realized too late that I should have made the change >> in the maintenance branch and used svnmerge to propagate it to the >> trunk; should I just make the change manually in the branch? > That should work fine. Then run "svnmerge merge ; svn commit" back on > the trunk to mark it as merged. Mike, The following is the result of svnmerge merge and svn status; I have not yet run svn commit because the status output suggests to me that things are getting merged that perhaps should not, since I don't know anything about them. Advice? Eric efiring@manini:~/programs/py/mpl/mpl_trunk$ svnmerge merge -S v0_98_5_maintproperty 'svnmerge-integrated' set on '.' property 'svnmerge-blocked' deleted from '.'. --- Merging r6717 through r6732 into '.': U lib/matplotlib/path.py property 'svnmerge-integrated' set on '.' property 'svnmerge-blocked' deleted from '.'. efiring@manini:~/programs/py/mpl/mpl_trunk$ svn status M . ? svnmerge-commit-message.txt ? doc/build ? doc/examples ? doc/_static/inheritance0ca9968ee0.pdf ? doc/_static/inheritance1bda3e63b5.pdf ? doc/_static/inheritance829eaf436e.pdf ? doc/_static/inheritance47732b7b79.pdf ? doc/_static/inheritance0ca9968ee0.png ? doc/_static/inheritancecbc02086c0.pdf ? doc/_static/inheritance1bda3e63b5.png ? doc/_static/inheritance829eaf436e.png ? doc/_static/inheritance47732b7b79.png ? doc/_static/mathmpl ? doc/_static/inheritancecbc02086c0.png ? doc/_static/plot_directive ? doc/_static/examples M doc/sphinxext/gen_gallery.py M doc/sphinxext/gen_rst.py M doc/pyplots/README ? lib/matplotlib/cbook0.py ? lib/matplotlib/colors0.py ? lib/matplotlib/transform.py ? lib/matplotlib/axes0.py M lib/matplotlib/path.py ? examples/tests/ps ? examples/tests/agg ? examples/tests/svg ? examples/tests/pdf ? examples/tests/template
Another (still slightly hacky) way might be to define an optional attribute of the file object. Something like this: if hasattr( outputFile, "mplFormat" ): format = getattr( outputFile, "mplFormat" ) Then have set PdfFile.mplFormat to be "pdf". This is a little less hacky in that it doesn't depend on coding a specific class into savefig. Ted > -----Original Message----- > From: Michael Droettboom [mailto:md...@st...] > Sent: Friday, January 02, 2009 7:27 AM > To: mat...@li... > Subject: Re: [matplotlib-devel] Multipage pdf files > > It's slightly hackish, but would it be possible to do an "isinstance" > check in savefig, and if the first arg is a PdfFile, set "format" to > "pdf" automatically, and if "format" is set to something else raise an > exception? A little hackish because it doesn't necessarily scale to > other formats easily, but it would prevent the user from shooting > herself in the foot. > > Mike > > Jouni K. Seppänen wrote: > > I added support to the pdf backend for multipage pdf files. The > current > > API (which I'm not entirely happy with) is that you create a PdfFile > > object, plot your figures, saving each one to the PdfFile object, and > > then close the object. The part I'm unhappy about is that because > > PdfFile is a file-like object - it has a write method - you can > > accidentally save your figure as a png into it and get a broken pdf > > file. You have to specify format='pdf' to savefig to avoid this. > > > > Here's an example: > > > > from matplotlib.backends.backend_pdf import PdfFile > > > > pdf = PdfFile('multipage_pdf.pdf') > > > > figure(...) > > # build your figure > > savefig(pdf, format='pdf') > > > > # repeat for all your figures > > > > pdf.close() > > > > > > > > > ----------------------------------------------------------------------- > ------- > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.2/1872 - Release Date: > 1/2/2009 1:10 PM
It's slightly hackish, but would it be possible to do an "isinstance" check in savefig, and if the first arg is a PdfFile, set "format" to "pdf" automatically, and if "format" is set to something else raise an exception? A little hackish because it doesn't necessarily scale to other formats easily, but it would prevent the user from shooting herself in the foot. Mike Jouni K. Seppänen wrote: > I added support to the pdf backend for multipage pdf files. The current > API (which I'm not entirely happy with) is that you create a PdfFile > object, plot your figures, saving each one to the PdfFile object, and > then close the object. The part I'm unhappy about is that because > PdfFile is a file-like object - it has a write method - you can > accidentally save your figure as a png into it and get a broken pdf > file. You have to specify format='pdf' to savefig to avoid this. > > Here's an example: > > from matplotlib.backends.backend_pdf import PdfFile > > pdf = PdfFile('multipage_pdf.pdf') > > figure(...) > # build your figure > savefig(pdf, format='pdf') > > # repeat for all your figures > > pdf.close() > > >
Eric Firing wrote: > Mike, Jan, > > Any attempt to normalize the angles to a fixed range of length 2 pi > inside of mpl is sure to wreck valid user code; it merely moves the > trouble spot to a different angle. Thanks for catching this. Clearly that was a bone-headed fix on my part... :( > > In 6731 I reverted the normalization change from 6106, and also > improved the r-tick locations in cases where the actual r-data range > is small. > > Mike, of course I realized too late that I should have made the change > in the maintenance branch and used svnmerge to propagate it to the > trunk; should I just make the change manually in the branch? That should work fine. Then run "svnmerge merge ; svn commit" back on the trunk to mark it as merged. > > Polar plotting could still use more work, but I doubt I will be able > to do much any time soon. Yeah -- there's lots of tricky side issues. Cheers, Mike
Mike, Jan, The thread http://www.mail-archive.com/mat...@li.../msg08342.html culminated in changeset r6106, which seemed to fix the immediate problem, but in fact introduced a major bug: polar plotting was broken for lines or patches with angles crossing zero. The real solution to the original problem is not a change to mpl, but to user code. In the example from the thread, r = np.transpose(.1+np.arange ( 0 , 0.7 , 0.001)) theta = -4.5 * np.pi *r freq = r*10e9 data = np.multiply(r,np.exp(1j*theta)) ax.plot(np.unwrap(angle(data)),abs(data)) # note added call to unwrap the original problem was that the angle was jumping from near minus pi to near plus pi, and the solution is to use the unwrap function, or equivalent, to make the angle vary smoothly from start to finish, with no jumps. Any attempt to normalize the angles to a fixed range of length 2 pi inside of mpl is sure to wreck valid user code; it merely moves the trouble spot to a different angle. In 6731 I reverted the normalization change from 6106, and also improved the r-tick locations in cases where the actual r-data range is small. Mike, of course I realized too late that I should have made the change in the maintenance branch and used svnmerge to propagate it to the trunk; should I just make the change manually in the branch? Polar plotting could still use more work, but I doubt I will be able to do much any time soon. Eric