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
(24) |
2
(35) |
3
(21) |
4
(15) |
5
(1) |
6
(2) |
7
(30) |
8
(16) |
9
(11) |
10
(10) |
11
(10) |
12
(4) |
13
(2) |
14
(14) |
15
(21) |
16
(7) |
17
(5) |
18
(2) |
19
(5) |
20
|
21
(4) |
22
(8) |
23
(4) |
24
(6) |
25
(2) |
26
(2) |
27
(5) |
28
(9) |
29
(16) |
30
(14) |
31
(5) |
|
|
great. Thanks! I had a look at the thumbnails but didn't find the one you point out. (And the doc is confusing) Thanks! and yes, very weird behaviour when the two arrays have the same length... Eric On 30/12/09 19:53, Jae-Joon Lee wrote: > x1 = random(1000) > x2 = random(1000) > > n, bins, patches = hist(np.array([x1, x2]).transpose()) > > plt.setp(patches[0], color="r") > plt.setp(patches[1], color="b") > > also see > > http://matplotlib.sourceforge.net/examples/pylab_examples/hist_colormapped.html
Hi thanks a lot for the quick tip. But no xpdf does not do it (I had tried it). Just to be consistent below is an account of my config (may not help much). I'll tried to write some simple script to reproduce the bug and post it but I am afraid this won't be very simple on my side. cheers Eric ========================================== # OS is OpenSuse 11.2 with KDE, 64b laptop matplotlib version 0.99.1.1 verbose.level helpful interactive is False units is False platform is linux2 backend WXAgg version 2.8.10.1 Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) IPython 0.10 -- An enhanced Interactive Python. # And in my matplotlibrc: usetex False ## tried usetex True too ps.papersize : A4 ps.useafm : False ps.usedistiller : None ## I tried all possible distiller... didn't change the pb. ps.distiller.res : 120 # dpi ps.fonttype : 3 ========================================== On 30/12/09 20:35, Jae-Joon Lee wrote: > This is a kind of bug that is quite hard to trace unless we can > reproduce the error. > > As far as I know, there has been a report that matplotlib does not > work well with GPL Ghostscript 8.63. And I'm not sure if it is > related. > > http://old.nabble.com/Segmentation-fault-with-EPS-output-on-matplotlib->%3D0.98.5.2-to25257581.html#a25334270 > > So, see if using "xpdf" as a distiller works. >> -- ================================================================= Eric Emsellem European Southern Observatory Karl-Schwarzschild Str. 2 e-mail: eem...@es... 85748 Garching bei Muenchen tel: +49 (0)89 3200 6914 Germany fax: +49 (0)89 3200 6480 =================================================================
http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels -JJ On Wed, Dec 30, 2009 at 6:30 AM, Eero Nevalainen <eer...@in...> wrote: > Hi, > > I find myself repeatedly manually adjusting subplot params, e.g. > figure.subplot.left, to remove extra white space on my figures. Is there > a better, automatic way to do this? > > Regards, > > Eero > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
This is a kind of bug that is quite hard to trace unless we can reproduce the error. As far as I know, there has been a report that matplotlib does not work well with GPL Ghostscript 8.63. And I'm not sure if it is related. http://old.nabble.com/Segmentation-fault-with-EPS-output-on-matplotlib->%3D0.98.5.2-to25257581.html#a25334270 So, see if using "xpdf" as a distiller works. Regards, -JJ On Wed, Dec 30, 2009 at 9:39 AM, Eric Emsellem <eem...@es...> wrote: > Hi again > > regarding my last post, I still have pb generating simple eps files. > Now I turned on "usetex" to True and I get the message given below. If > anyone can help me with this, it would be great since I am now stuck > with this. > > Reminder: the pb occurs when I save a figure (savefig) in postscript > format (.eps), after plotting a number of small thumbnail images (using > pcolormesh and contour). > > cheers > > Eric > ======================================================================= > GPL Ghostscript 8.64: Unrecoverable error, exit code 1 > --------------------------------------------------------------------------- > RuntimeError Traceback (most recent call last) > > /home/science/ATLAS3D/python/Analysis/show_maps.py in <module>() > ----> 1 > 2 > 3 > 4 > 5 > > /usr/lib64/python2.6/site-packages/matplotlib/pyplot.pyc in > savefig(*args, **kwargs) > 354 def savefig(*args, **kwargs): > > 355 fig = gcf() > > --> 356 return fig.savefig(*args, **kwargs) > > 357 if Figure.savefig.__doc__ is not None: > > 358 savefig.__doc__ = dedent(Figure.savefig.__doc__) > > > /usr/lib64/python2.6/site-packages/matplotlib/figure.pyc in > savefig(self, *args, **kwargs) > 1030 patch.set_alpha(0.0) > > 1031 > > -> 1032 self.canvas.print_figure(*args, **kwargs) > > 1033 > > 1034 if transparent: > > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_wxagg.pyc > in print_figure(self, filename, *args, **kwargs) > 98 def print_figure(self, filename, *args, **kwargs): > > 99 # Use pure Agg renderer to draw > > > --> 100 FigureCanvasAgg.print_figure(self, filename, *args, > **kwargs) > 101 # Restore the current view; this is needed because the > > > 102 # artist contains methods rely on particular attributes > > > /usr/lib64/python2.6/site-packages/matplotlib/backend_bases.pyc in > print_figure(self, filename, dpi, facecolor, edgecolor, orientation, > format, **kwargs) > 1474 orientation=orientation, > > > 1475 bbox_inches_restore=_bbox_inches_restore, > > > -> 1476 **kwargs) > > > 1477 finally: > > > 1478 if bbox_inches and restore_bbox: > > > > /usr/lib64/python2.6/site-packages/matplotlib/backend_bases.pyc in > print_eps(self, *args, **kwargs) > 1327 from backends.backend_ps import FigureCanvasPS # lazy > import > 1328 ps = self.switch_backends(FigureCanvasPS) > > -> 1329 return ps.print_eps(*args, **kwargs) > > 1330 > > 1331 def print_pdf(self, *args, **kwargs): > > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in > print_eps(self, outfile, *args, **kwargs) > 853 > > 854 def print_eps(self, outfile, *args, **kwargs): > > --> 855 return self._print_ps(outfile, 'eps', *args, **kwargs) > > 856 > > 857 > > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in > _print_ps(self, outfile, format, *args, **kwargs) > 882 self._print_figure_tex(outfile, format, imagedpi, > facecolor, edgecolor, > 883 orientation, isLandscape, > papertype, > --> 884 **kwargs) > > 885 else: > > > 886 self._print_figure(outfile, format, imagedpi, > facecolor, edgecolor, > > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in > _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, > orientation, isLandscape, papertype, **kwargs) > > > > 1191 elif rcParams['text.usetex']: > > > 1192 if False: pass # for debugging > > > -> 1193 else: gs_distill(tmpfile, isEPSF, ptype=papertype, > bbox=bbox) > > 1194 > > > 1195 if isinstance(outfile, file): > > > > /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in > gs_distill(tmpfile, eps, ptype, bbox) > 1311 fh = file(outfile) > > 1312 if exit_status: raise RuntimeError('ghostscript was not able > to process \ > -> 1313 your image.\nHere is the full report generated by > ghostscript:\n\n' + fh.read()) > 1314 else: verbose.report(fh.read(), 'debug') > > > 1315 fh.close() > > > > RuntimeError: ghostscript was not able to process your image. > Here is the full report generated by ghostscript: > > GPL Ghostscript 8.64 (2009年02月03日) > Copyright (C) 2009 Artifex Software, Inc. All rights reserved. > This software comes with NO WARRANTY: see the file COPYING for details. > Loading NimbusSanL-Regu font from > /usr/share/ghostscript/8.64/Resource/Font/NimbusSanL-Regu... 3968216 > 1927802 6785440 4864692 1 done. > Loading CenturySchL-Roma font from > /usr/share/ghostscript/8.64/Resource/Font/CenturySchL-Roma... 4008424 > 2092670 6785440 4877110 1 done. > Error: /limitcheck in --def-- > Operand stack: > p1c_37d --nostringval-- > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- > --nostringval-- false 1 %stopped_push 1878 1 3 > %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop > 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop > .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 > %stopped_push --nostringval-- > Dictionary stack: > --dict:1169/3371(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- > --dict:5/6(ro)(L)-- --dict:176/300(L)-- --dict:44/200(L)-- > --dict:65534/65534(L)-- > Current allocation mode is local > Last OS error: 2 > Current file position is 14089308 > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On Wed, Dec 30, 2009 at 12:05 PM, Eric Emsellem <eem...@es...> wrote: > I have tried with rgba sequences but no luck there. The help of hist > << color: matplotlib color arg or sequence of rgba tuples >> > Based on my quick look at the code, it seems that the documentation is incorrect. I believe it should be "a tuple of rgba values", not "sequence of rgba tuples", and I don't think it is possible to specify color"s" using keyword arguments. x1 = random(1000) x2 = random(1000) n, bins, patches = hist(np.array([x1, x2]).transpose()) plt.setp(patches[0], color="r") plt.setp(patches[1], color="b") also see http://matplotlib.sourceforge.net/examples/pylab_examples/hist_colormapped.html Regards, -JJ p.s., Is it just me who think it is confusing that hist([x1,x2]) interprets input differently when len(x1) == len(x2) and when len(x1) != len(x2)?
Hi how do I specify the colour of the bars in an histogram done with more than one set of data? Example: x1 = random(1000) x2 = random(1000) hist([x1,x2], c=['r','b']) does not work... I have tried with rgba sequences but no luck there. The help of hist << color: matplotlib color arg or sequence of rgba tuples >> so I guess we can specify the individual colours of each set of bars (one colour per dataset) no? thanks. Eric
Hi again regarding my last post, I still have pb generating simple eps files. Now I turned on "usetex" to True and I get the message given below. If anyone can help me with this, it would be great since I am now stuck with this. Reminder: the pb occurs when I save a figure (savefig) in postscript format (.eps), after plotting a number of small thumbnail images (using pcolormesh and contour). cheers Eric ======================================================================= GPL Ghostscript 8.64: Unrecoverable error, exit code 1 --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) /home/science/ATLAS3D/python/Analysis/show_maps.py in <module>() ----> 1 2 3 4 5 /usr/lib64/python2.6/site-packages/matplotlib/pyplot.pyc in savefig(*args, **kwargs) 354 def savefig(*args, **kwargs): 355 fig = gcf() --> 356 return fig.savefig(*args, **kwargs) 357 if Figure.savefig.__doc__ is not None: 358 savefig.__doc__ = dedent(Figure.savefig.__doc__) /usr/lib64/python2.6/site-packages/matplotlib/figure.pyc in savefig(self, *args, **kwargs) 1030 patch.set_alpha(0.0) 1031 -> 1032 self.canvas.print_figure(*args, **kwargs) 1033 1034 if transparent: /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_wxagg.pyc in print_figure(self, filename, *args, **kwargs) 98 def print_figure(self, filename, *args, **kwargs): 99 # Use pure Agg renderer to draw --> 100 FigureCanvasAgg.print_figure(self, filename, *args, **kwargs) 101 # Restore the current view; this is needed because the 102 # artist contains methods rely on particular attributes /usr/lib64/python2.6/site-packages/matplotlib/backend_bases.pyc in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs) 1474 orientation=orientation, 1475 bbox_inches_restore=_bbox_inches_restore, -> 1476 **kwargs) 1477 finally: 1478 if bbox_inches and restore_bbox: /usr/lib64/python2.6/site-packages/matplotlib/backend_bases.pyc in print_eps(self, *args, **kwargs) 1327 from backends.backend_ps import FigureCanvasPS # lazy import 1328 ps = self.switch_backends(FigureCanvasPS) -> 1329 return ps.print_eps(*args, **kwargs) 1330 1331 def print_pdf(self, *args, **kwargs): /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in print_eps(self, outfile, *args, **kwargs) 853 854 def print_eps(self, outfile, *args, **kwargs): --> 855 return self._print_ps(outfile, 'eps', *args, **kwargs) 856 857 /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_ps(self, outfile, format, *args, **kwargs) 882 self._print_figure_tex(outfile, format, imagedpi, facecolor, edgecolor, 883 orientation, isLandscape, papertype, --> 884 **kwargs) 885 else: 886 self._print_figure(outfile, format, imagedpi, facecolor, edgecolor, /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, orientation, isLandscape, papertype, **kwargs) 1191 elif rcParams['text.usetex']: 1192 if False: pass # for debugging -> 1193 else: gs_distill(tmpfile, isEPSF, ptype=papertype, bbox=bbox) 1194 1195 if isinstance(outfile, file): /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in gs_distill(tmpfile, eps, ptype, bbox) 1311 fh = file(outfile) 1312 if exit_status: raise RuntimeError('ghostscript was not able to process \ -> 1313 your image.\nHere is the full report generated by ghostscript:\n\n' + fh.read()) 1314 else: verbose.report(fh.read(), 'debug') 1315 fh.close() RuntimeError: ghostscript was not able to process your image. Here is the full report generated by ghostscript: GPL Ghostscript 8.64 (2009年02月03日) Copyright (C) 2009 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file COPYING for details. Loading NimbusSanL-Regu font from /usr/share/ghostscript/8.64/Resource/Font/NimbusSanL-Regu... 3968216 1927802 6785440 4864692 1 done. Loading CenturySchL-Roma font from /usr/share/ghostscript/8.64/Resource/Font/CenturySchL-Roma... 4008424 2092670 6785440 4877110 1 done. Error: /limitcheck in --def-- Operand stack: p1c_37d --nostringval-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1169/3371(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:5/6(ro)(L)-- --dict:176/300(L)-- --dict:44/200(L)-- --dict:65534/65534(L)-- Current allocation mode is local Last OS error: 2 Current file position is 14089308
Hi I am having reccurrent problem generating postscript files using savefig. I am basically generating a figure with lots of small thumbnail images (loaded with mpl pcolormesh and contour) and some overimposed text. When I do: savefig("myfig.eps") it takes quite a while, and makes rather big figures (> 20 Mb). But then I cannot load that eps file anymore with any of the software I have tried (okular, display, gimp...). The file seems corrupted and when I e.g. try with display it tells me: Error: /limitcheck in --def-- Operand stack: p1c_37d --nostringval-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop --nostringval-- 1861 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1172/3371(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- --dict:65534/65534(L)-- Current allocation mode is local Last OS error: 2 Current file position is 14073283 GPL Ghostscript 8.64: Unrecoverable error, exit code 1 Any help with this please!? THANKS! Eric ######################################################### # Some info on my config here ######################################################### # OS is OpenSuse 11.2 with KDE, 64b laptop matplotlib version 0.99.1.1 verbose.level helpful interactive is False units is False platform is linux2 backend WXAgg version 2.8.10.1 Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) IPython 0.10 -- An enhanced Interactive Python. # And in my matplotlibrc: usetex False ps.papersize : A4 ps.useafm : False ps.usedistiller : None ps.distiller.res : 120 # dpi ps.fonttype : 3
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric Firing wrote: > Dominik Szczerba wrote: > OK I started hacking and added a color_cycle property to matplotlibrc. > Would you be so kind to add this fix to the official version? Thanks! > Dominik > >> Your basic idea--that the colorcycle should be settable in >> rcParams--makes good sense, but the implementation needs some changes, >> maybe including a bit of redesign of the color cycle handling. I will >> look into it. A little discussion on the devel list may be required. I >> think we will want to completely decouple lines.color from a new >> lines.colorcycle, but maybe there is some good reason, other than >> history, for why they are coupled. Hi Eric, That's great. I would be happy if a final conclusion from the devel list could be forwarded here as well. Thanks, Dominik > >> Eric > > $ diff -w axes.py axes.py.org > 135,137c135 > < # DSZ take defaultColors from rcParams > < # defaultColors = ['b','g','r','c','m','y','k'] > < defaultColors = rcParams['axes.color_cycle'] > --- >>>> defaultColors = ['b','g','r','c','m','y','k'] > > $ diff -w rcsetup.py rcsetup.py.org > 442,443d441 > < # DSZ add color_cycle property > < 'axes.color_cycle' : [['b','g','r','c','m','y','k'], > validate_stringlist], > > > > Add to custom matplotlibrc as e.g.: > > axes.color_cycle : w, w, w, w, w, w, w > > > > > > > > > > Dominik Szczerba wrote: >>>> I want to specify my own color cycle in matplotlibrc. I know I can do in >>>> the actual script: >>>> >>>> matplotlib.axes.set_default_color_cycle(['w', 'w', 'w', 'w', 'w', 'w', 'w']) >>>> >>>> but it renders my scripts not portable (if somebody does not have black >>>> bg in matplotlibrc as I do then he will not see the plot). >>>> >>>> (How) Can I specify my color cycle in matplotlibrc - or another portable >>>> fashion? Or at least disable it so the lines.color is used for all colors? >>>> >>>> Dominik > - > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > >> - ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAks7PloACgkQ/EBMh9bUuzLGNgCePjtqpURRGFo4Yn6XM3991irX 7XIAoNDfZqoUh56D1wpVmXsYaIbVBQSY =bQ/o -----END PGP SIGNATURE-----
Hi, I find myself repeatedly manually adjusting subplot params, e.g. figure.subplot.left, to remove extra white space on my figures. Is there a better, automatic way to do this? Regards, Eero
Hello, Numpy is capable of simple fitting of polynomials, see for a definition and an example: http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html Alternatively, there is an entry in the SciPy Cookbook: http:// www.scipy.org/Cookbook/FittingData Regards, Pierre Le 30 déc. 09 à 12:07, Manuel Wittchen a écrit : > Hi, > > I want to do a linear regression with my Data but couldn't find a > ready-to-use matplotlib- or numpy-function. If there is no function > for linear regression in matplotlib/numpy, could somebody explain to > me how to code lin. reg. as a function? > > Regards, > > Manuel Wittchen
Hi, I want to do a linear regression with my Data but couldn't find a ready-to-use matplotlib- or numpy-function. If there is no function for linear regression in matplotlib/numpy, could somebody explain to me how to code lin. reg. as a function? Regards, Manuel Wittchen
One nice thing about gnuplot is the option its GUI provides to toggle between using coloured lines and using black lines with various dashed patterns. I think it would be nice in matplotlib to also be able to have a default series of dashed patterns that could automatically be cycled through. Gary R Eric Firing wrote: > Dominik Szczerba wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> OK I started hacking and added a color_cycle property to matplotlibrc. >> Would you be so kind to add this fix to the official version? Thanks! >> Dominik > > Your basic idea--that the colorcycle should be settable in > rcParams--makes good sense, but the implementation needs some changes, > maybe including a bit of redesign of the color cycle handling. I will > look into it. A little discussion on the devel list may be required. I > think we will want to completely decouple lines.color from a new > lines.colorcycle, but maybe there is some good reason, other than > history, for why they are coupled.
Dominik Szczerba wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > OK I started hacking and added a color_cycle property to matplotlibrc. > Would you be so kind to add this fix to the official version? Thanks! > Dominik Your basic idea--that the colorcycle should be settable in rcParams--makes good sense, but the implementation needs some changes, maybe including a bit of redesign of the color cycle handling. I will look into it. A little discussion on the devel list may be required. I think we will want to completely decouple lines.color from a new lines.colorcycle, but maybe there is some good reason, other than history, for why they are coupled. Eric > > $ diff -w axes.py axes.py.org > 135,137c135 > < # DSZ take defaultColors from rcParams > < # defaultColors = ['b','g','r','c','m','y','k'] > < defaultColors = rcParams['axes.color_cycle'] > - --- >> defaultColors = ['b','g','r','c','m','y','k'] > > > $ diff -w rcsetup.py rcsetup.py.org > 442,443d441 > < # DSZ add color_cycle property > < 'axes.color_cycle' : [['b','g','r','c','m','y','k'], > validate_stringlist], > > > > Add to custom matplotlibrc as e.g.: > > axes.color_cycle : w, w, w, w, w, w, w > > > > > > > > > > Dominik Szczerba wrote: >> I want to specify my own color cycle in matplotlibrc. I know I can do in >> the actual script: >> >> matplotlib.axes.set_default_color_cycle(['w', 'w', 'w', 'w', 'w', 'w', 'w']) >> >> but it renders my scripts not portable (if somebody does not have black >> bg in matplotlibrc as I do then he will not see the plot). >> >> (How) Can I specify my color cycle in matplotlibrc - or another portable >> fashion? Or at least disable it so the lines.color is used for all colors? >> >> Dominik > > - > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkszMqcACgkQ/EBMh9bUuzJIigCgryC7tOPPkWkjjE/6/OTvLiiH > OUMAoIsGCWSAC6AO3F12Rv5yQN6tMQkL > =Ch5N > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users