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
(7) |
2
(3) |
3
(2) |
4
(2) |
5
(2) |
6
(3) |
7
(1) |
8
(9) |
9
(1) |
10
(9) |
11
(2) |
12
|
13
(1) |
14
(11) |
15
(8) |
16
(7) |
17
(10) |
18
(2) |
19
(3) |
20
(9) |
21
(3) |
22
(3) |
23
(1) |
24
(12) |
25
(1) |
26
(3) |
27
(3) |
28
(6) |
29
(1) |
30
(6) |
31
(1) |
|
This is not tested, but did you try ax2.clear() instead? -Sterling On Oct 10, 2014, at 7:45AM, Duke, Charles wrote: > With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a much longer program where the twinx axes must be cleared while retaining the primary axis plot. I would prefer not to replot the entire graph each time the twinx axes change. You can see this by adding the cla method to the matplotlib web site example, two_scales.py, shown below. > > I have matplotlib installed via the anaconda package. Matplotlib 1.4.0 is from anaconda 2.1.0. Matplotlib 1.3.1 is from 1.9 versions of the anaconda package. > > Linux version: > Linux gamow 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux > Same cla() result on osX 10.9.4. > > Same result for backends Qt4Agg and TkAgg; the cla() method cleared both axes. > I also tried various other options such as setting ax2.hold(False) prior to replotting ax2. However, once again ax1 was cleared. The ax2 clear commands seem to apply to the ax1 axis as well??? These options worked as expected for the earlier matplotlib version, clearing only the ax2 axis. > > Here’s the code: if you execute the code, you should see a blank figure with the cla() included and the usual two graphs without the cla() method. > > -------------------------------------------------------------------- > import numpy as np > import matplotlib.pyplot as plt > > fig, ax1 = plt.subplots() > t = np.arange(0.01, 10.0, 0.01) > s1 = np.exp(t) > ax1.plot(t, s1, 'b-') > ax1.set_xlabel('time (s)') > # Make the y-axis label and tick labels match the line color. > ax1.set_ylabel('exp', color='b') > for tl in ax1.get_yticklabels(): > tl.set_color('b') > > ax2 = ax1.twinx() > s2 = np.sin(2*np.pi*t) > ax2.plot(t, s2, 'r.') > ax2.set_ylabel('sin', color='r') > for tl in ax2.get_yticklabels(): > tl.set_color('r') > > # single line addition to the two_scales.py example > # clears both ax2 and ax1 under matplotlib 1.4.0, clears only ax2 under matplotlib 1.3.1 > # obviously, same result with ax2.clear() method > ax2.cla() > > plt.show() > > > I would appreciate any help; this looks like a bug in the latest version of matplotlib. > I could not find any reference to this problem in earlier posts. > > Thanks, > Charlie > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a much longer program where the twinx axes must be cleared while retaining the primary axis plot. I would prefer not to replot the entire graph each time the twinx axes change. You can see this by adding the cla method to the matplotlib web site example, two_scales.py, shown below. I have matplotlib installed via the anaconda package. Matplotlib 1.4.0 is from anaconda 2.1.0. Matplotlib 1.3.1 is from 1.9 versions of the anaconda package. Linux version: Linux gamow 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux Same cla() result on osX 10.9.4. Same result for backends Qt4Agg and TkAgg; the cla() method cleared both axes. I also tried various other options such as setting ax2.hold(False) prior to replotting ax2. However, once again ax1 was cleared. The ax2 clear commands seem to apply to the ax1 axis as well??? These options worked as expected for the earlier matplotlib version, clearing only the ax2 axis. Here's the code: if you execute the code, you should see a blank figure with the cla() included and the usual two graphs without the cla() method. -------------------------------------------------------------------- import numpy as np import matplotlib.pyplot as plt fig, ax1 = plt.subplots() t = np.arange(0.01, 10.0, 0.01) s1 = np.exp(t) ax1.plot(t, s1, 'b-') ax1.set_xlabel('time (s)') # Make the y-axis label and tick labels match the line color. ax1.set_ylabel('exp', color='b') for tl in ax1.get_yticklabels(): tl.set_color('b') ax2 = ax1.twinx() s2 = np.sin(2*np.pi*t) ax2.plot(t, s2, 'r.') ax2.set_ylabel('sin', color='r') for tl in ax2.get_yticklabels(): tl.set_color('r') # single line addition to the two_scales.py example # clears both ax2 and ax1 under matplotlib 1.4.0, clears only ax2 under matplotlib 1.3.1 # obviously, same result with ax2.clear() method ax2.cla() plt.show() I would appreciate any help; this looks like a bug in the latest version of matplotlib. I could not find any reference to this problem in earlier posts. Thanks, Charlie
Which version of matplotlib and which backend? Also, don't use == or != when comparing to None. Use "is" and "is not". Ben Root
Hi All, I am working on a platform that makes it difficult to provide repro cases... but I am hoping someone can shed some light on what I am seeing... Essentially, I have a program imports another script that* import matplotlib.pyplot as PLT... when it runs more than once then I get the following traceback: Error in atexit._run_exitfuncs: Traceback (most recent call last): File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "C:\Python27\lib\site-packages\matplotlib\_pylab_helpers.py", line 87, in destroy_all for manager in list(Gcf.figs.values()): AttributeError: 'NoneType' object has no attribute 'figs' Error in sys.exitfunc: Traceback (most recent call last): File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "C:\Python27\lib\site-packages\matplotlib\_pylab_helpers.py", line 87, in destroy_all for manager in list(Gcf.figs.values()): AttributeError: 'NoneType' object has no attribute 'figs' This occurs because in this case the PLT functionality is NOT being used on the main script. If I edit the _pylab_helpers.py file and check to see if Gcf is None... if it is NOT then do the "destroy_all" logic... else it passes [code change below]... then the error disappears. I can make it disappear for many cases by creating a "dummy" figure so that Gcf gets created and therefore has some garbage to collect. Any information you can give me would be greatly appreciated. TY, MJ [cid:image001.png@01CFE248.0F0A2700]
I'm using matplotlib to generate svg plots which I'm putting into an html document. I noticed the plots aren't scaling the way I expect them to with css in an html page, so, a little yak-shaving later, I found a particular line in the source code that I think should change (or be changeable with an option). Basically, the svg backend specifies a width and height in pixels. If I edit the svg file to set width and height to "100%", the figure scales with css the way I expect. Is there some way to do this without patching matplotlib (or editing every generated svg by hand)? I'm attaching the one-line patch to make the svg backend do what I want, but if someone wants the old behavior, perhaps there could be a configuration option in matplotlib.rcParams? Vadim -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
Hi Eric Thanks for your reply and sorry for my late response. Thanks for the pointer. I will try to investigate the issue myself. Best regards, Jesper > Den 30/09/2014 kl. 20.44 skrev Eric Firing <ef...@ha...>: > >> On 2014年09月30日, 2:41 AM, Jesper Larsen wrote: >> Hi matplotlib users, >> >> Is it possible to disable antialiasing for a colorbar? If not directly >> is it the possible to "postprocess" the axes instance to se antialiasing >> for relevant elements? > > The colorbar returns a Colorbar object, the "solids" attribute of which > is a Quadmesh; so you should be able to execute > > cbar.solids.set_antialiased(False) > > to turn off antialiasing. With a bit of testing, however, I am not > seeing any difference, so I'm not sure what is going on, and I don't > have time now to investigate. > > Eric > >> >> The reason I am asking is because I would like to produce a paletted png >> (using PIL) of the colorbar without the risk of removing any important >> colors in the process (in essence the output from matplotlib needs to >> have less than 256 colors for this to work). >> >> Best regards, >> Jesper >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> >> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
I agree with Skip. On Wed, Oct 8, 2014 at 5:03 PM, Skip Montanaro <sk...@po...> wrote: > On Sun, Oct 5, 2014 at 4:33 PM, Frank Lindner <fra...@gm...> > wrote: > > I would like to have a list of software, which uses matplotlib to extend > > the wikipedia in some other languages. > > While that is a noble quest, unless you plan to maintain that list > indefinitely, I think it might do more harm than good. Consider the > case where today products A, B, and C use mpl. Two years down the > road, B is defunct, but a new product, D, has come on the scene and > uses mpl in ways never dreamed of before. If people are searching for > tools which use Matplotlib, they may completely miss D. > > Wikipedia has an aura of authority, which in my mind pretty much > requires that you be pretty Johnny-on-the-spot with updates to > enumerated lists such as you propose. I personally think it would be > better if the Matplotlib page in Wikipedia just refers to the main mpl > site. > > My 2¢ > > Skip > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- * * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * * Dr. N.P.M. Kuin (n....@uc...) phone +44-(0)1483 (prefix) -204927 (work) mobile +44(0)7806985366 skype ID: npkuin Mullard Space Science Laboratory – University College London – Holmbury St Mary – Dorking – Surrey RH5 6NT– U.K.
On Sun, Oct 5, 2014 at 4:33 PM, Frank Lindner <fra...@gm...> wrote: > I would like to have a list of software, which uses matplotlib to extend > the wikipedia in some other languages. While that is a noble quest, unless you plan to maintain that list indefinitely, I think it might do more harm than good. Consider the case where today products A, B, and C use mpl. Two years down the road, B is defunct, but a new product, D, has come on the scene and uses mpl in ways never dreamed of before. If people are searching for tools which use Matplotlib, they may completely miss D. Wikipedia has an aura of authority, which in my mind pretty much requires that you be pretty Johnny-on-the-spot with updates to enumerated lists such as you propose. I personally think it would be better if the Matplotlib page in Wikipedia just refers to the main mpl site. My 2¢ Skip
Hi maybe you could also just run a search on github with: "import matplotlib" or "from matplotlib import pyplot" You’ll get thousands of answers, but using the github search API https://developer.github.com/v3/search/, you could filter out this data (by project size or by project activity). This would also allow you to know how many projects are using matplotlib and make some stats (at least on github). Michka On 8 oct. 2014, at 17:47, Benjamin Root <ben...@ou...> wrote: > No clue, but here is one project to add to some such list: https://github.com/rillian/isee3-telemetry > > On Sun, Oct 5, 2014 at 5:33 PM, Frank Lindner <fra...@gm...> wrote: > hello everyone, > I would like to have a list of software, which uses matplotlib to extend > the wikipedia in some other languages. do you have an idea where I could > find such lists? > thank you! > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Seems to me a weird kind of exercise. Bound to be incomplete to some unknown degree. Whats the point then? On Wed, Oct 8, 2014 at 4:47 PM, Benjamin Root <ben...@ou...> wrote: > No clue, but here is one project to add to some such list: > https://github.com/rillian/isee3-telemetry > > On Sun, Oct 5, 2014 at 5:33 PM, Frank Lindner <fra...@gm...> > wrote: > >> hello everyone, >> I would like to have a list of software, which uses matplotlib to extend >> the wikipedia in some other languages. do you have an idea where I could >> find such lists? >> thank you! >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- * * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * * Dr. N.P.M. Kuin (n....@uc...) phone +44-(0)1483 (prefix) -204927 (work) mobile +44(0)7806985366 skype ID: npkuin Mullard Space Science Laboratory – University College London – Holmbury St Mary – Dorking – Surrey RH5 6NT– U.K.
No clue, but here is one project to add to some such list: https://github.com/rillian/isee3-telemetry On Sun, Oct 5, 2014 at 5:33 PM, Frank Lindner <fra...@gm...> wrote: > hello everyone, > I would like to have a list of software, which uses matplotlib to extend > the wikipedia in some other languages. do you have an idea where I could > find such lists? > thank you! > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hi Paul, Le 06/10/2014 22:27, Paul Hobson a écrit : > I built a ProbabilityScale[2] which I hope one day will be in the > statsmodels library. This just made me think that back in April I was also playing with matplotlib scales for probability distribution. http://nbviewer.ipython.org/gist/pierre-haessig/7e3e6a818edeb6819708 It's actually a completely different idea, because I was doing a "logit" scale to get a good visualization of *tails* in a cumulated distribution plot. So I'm jumping on your thread in case anyone can give me some feedback on this idea. For example, I have no clue on how common this kind of plot is (and how useful it can be!!). best, Pierre (and going back to your original question, I notice that I was indeed registering the scale...)
Here's that second link for the scale: https://gist.github.com/phobson/3cc3550ce1efcc299142 On Mon, Oct 6, 2014 at 1:27 PM, Paul Hobson <pmh...@gm...> wrote: > MPL Users, > > Using [1] as a template, I built a ProbabilityScale[2] which I hope one > day will be in the statsmodels library. It still needs some work, but it's > mostly there. > > I have, what I hope is a basic question: > Do I have to register the scale in order to use it, or is there an axes > method to feed it the ProbScale class directly? > > I notice that there is an axes.xaxis._set_scale method -- but there > appears to be no "public" API way of using an unregistered scale. > > If it is the case that there's no sanctioned way of applying an > unregistered scale to an Axes object, when/where in a module is best to > register it (e.g., on import, locally within a the function/method that > needs it)? > > Cheers, > -paul > > [1] > http://matplotlib.org/examples/api/custom_scale_example.html?highlight=codex%20set_major_locator >
MPL Users, Using [1] as a template, I built a ProbabilityScale[2] which I hope one day will be in the statsmodels library. It still needs some work, but it's mostly there. I have, what I hope is a basic question: Do I have to register the scale in order to use it, or is there an axes method to feed it the ProbScale class directly? I notice that there is an axes.xaxis._set_scale method -- but there appears to be no "public" API way of using an unregistered scale. If it is the case that there's no sanctioned way of applying an unregistered scale to an Axes object, when/where in a module is best to register it (e.g., on import, locally within a the function/method that needs it)? Cheers, -paul [1] http://matplotlib.org/examples/api/custom_scale_example.html?highlight=codex%20set_major_locator
Hello. Can I use pyplot functions (such as pyplot.plot, pyplot.pcolormesh) to plot in embedded Qt plot? I have created the following class class CDeltaHPlot(FigureCanvasQTAgg): def __init__(self, parent = None): self.figure = Figure() self.axes = self.figure.add_subplot(111) FigureCanvasQTAgg.__init__(self, self.figure) self.setParent(parent) FigureCanvasQTAgg.setSizePolicy(self, QSizePolicy.Expanding, QSizePolicy.Expanding) FigureCanvasQTAgg.updateGeometry(self) self.plot() def plot(self): pyplot.sca(self.axes) But it throws the following exception: File "/opt/develop/lib/python3.4/site-packages/matplotlib-1.4.0-py3.4-linux-x8 6_64.egg/matplotlib/pyplot.py", line 806, in sca raise ValueError("Axes instance argument was not found in a figure.") ValueError: Axes instance argument was not found in a figure. Kind regards, Petr.
Hey Ben, Sounds like a cool list. Plotly (https://plot.ly) turns matplotlib plots into interactive, D3.js plots and translates the figure into R, MATLAB, and Julia. Plotly makes the data and figure editable in a web-based GUI, assigns the plot to a URL (e.g.: https://plot.ly/~PlotBot/182), and lets users collaboratively edit the plot, data, and code online either via GUI or code. See our matplotlib docs: https://plot.ly/matplotlib/. Here's an IPython Notebook walk-through: http://nbviewer.ipython.org/gist/msund/11349097. Given the use of matplotlib in ggplot for Python, prettyplotlib, and Seaborn, the same translation applies, as shown in that Notebook. M On Sat, Oct 4, 2014 at 7:53 AM, Benjamin Root <ben...@ou...> wrote: > I working on compiling a list of third-party tools that provide > interactive features to matplotlib. I am looking for tools such as Joe's > mpldatacursor. If you know of a tool that should be included in this list, > let me know! > > Thanks, > Ben Root > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
hello everyone, I would like to have a list of software, which uses matplotlib to extend the wikipedia in some other languages. do you have an idea where I could find such lists? thank you!
Hi Ben, Glue (glueviz.org) is built on top of matplotlib -- its more of an application than a toolkit for supplementing MPL, although it's new custom data viewer feature lets you easily turn static matplotlib plots into interactive, selectable plots (see http://www.glueviz.org/en/latest/custom_viewer.html). chris On Sat, Oct 4, 2014 at 8:53 AM, Benjamin Root <ben...@ou...> wrote: > I working on compiling a list of third-party tools that provide > interactive features to matplotlib. I am looking for tools such as Joe's > mpldatacursor. If you know of a tool that should be included in this list, > let me know! > > Thanks, > Ben Root > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- ************************************* Chris Beaumont Senior Software Engineer Harvard Center for Astrophysics 60 Garden Street, MS 42 Cambridge, MA 02138 chrisbeaumont.org *************************************
Also note, you can just call plt.xkcd() and it will turn on the setting globally for that session. On 4 October 2014 00:11, Paul Hobson <pmh...@gm...> wrote: > That's what the `with` statement allows you do. > > Say you have a function that does some plotting and returns a figure -- > call it my_plot_func. > > You can do: > > fig1 = my_plot_func() > fig1.savefig('normal1.png') > > with plt.xkcd(): > fig2 = mu_plot_func() > fig2.savefig('xkcd.png') > > fig2 = my_plot_func() > fig2.savefig('normal2.png') > > And the xkcd image will be squiggly but the normal images won't. > -p > > On Fri, Oct 3, 2014 at 12:40 PM, Christophe Bal <pro...@gm...> > wrote: > >> Hello. >> >> I've only seen one way to use the xkcd feature. This uses a with >> statement. >> >> Is there another way to use the xkcd feature so as to easily switch >> between exact plot and trembling one ? >> >> Christophe BAL >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
I working on compiling a list of third-party tools that provide interactive features to matplotlib. I am looking for tools such as Joe's mpldatacursor. If you know of a tool that should be included in this list, let me know! Thanks, Ben Root
That's what the `with` statement allows you do. Say you have a function that does some plotting and returns a figure -- call it my_plot_func. You can do: fig1 = my_plot_func() fig1.savefig('normal1.png') with plt.xkcd(): fig2 = mu_plot_func() fig2.savefig('xkcd.png') fig2 = my_plot_func() fig2.savefig('normal2.png') And the xkcd image will be squiggly but the normal images won't. -p On Fri, Oct 3, 2014 at 12:40 PM, Christophe Bal <pro...@gm...> wrote: > Hello. > > I've only seen one way to use the xkcd feature. This uses a with statement. > > Is there another way to use the xkcd feature so as to easily switch > between exact plot and trembling one ? > > Christophe BAL > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
Hello. I've only seen one way to use the xkcd feature. This uses a with statement. Is there another way to use the xkcd feature so as to easily switch between exact plot and trembling one ? Christophe BAL
Nicolas, Thank you for the link to vispy. This looks like it will be much easier for me to wrap my mind around vispy than VTK... Best regards, Fabrice "Nicolas P. Rougier" <Nic...@in...> wrote: > >You might want to have a look at vispy.org, we implemented the wx backend and there are several examples available. >(and the new glumpy home is http://glumpy.github.io) > >vispy examples at http://vispy.org/gallery.html > > >Nicolas > > >On 01 Oct 2014, at 20:27, Fabrice C. <kap...@ya...> wrote: > >> Dear Ben, >> >> Thank you for the explanation. Too bad mplot3d cannot display textured polygons. >> I did have a look at glumpy and it does part of what I am looking for. However, glumpy does not support being embedded in a wxpython application which is a requisite for me. >> >> I guess I just have to learn VTK... >> >> Thanks again, >> >> Fabrice >> >> Benjamin Root <ben...@ou...> wrote: >> >> I tried something like this awhile back to no avail. Because of the kludgy nature of mplot3d, we are lucky we even can display 2d artists like polygons (and, this is me speaking as the de facto maintainer of mplot3d!). Images are an entirely different beast, unfortunately. >> >> What *might* work is getting a pcolormesh object converted into 3d. Not pcolor (as that is an image-based object), but the QuadMesh object that gets returned by pcolormesh(). I haven't tried to convert that into a 3d equivalent, but it might be feasible. >> >> I would also check out glumpy: https://code.google.com/p/glumpy/. I could have sworn I have seen examples of glumpy treating images as "texture" data for surfaces. >> >> I hope this points you in a useful direction! >> Ben Root >> >> >> On Tue, Sep 30, 2014 at 5:54 PM, Fabrice C. <kap...@ya...> wrote: >> Dear list, >> >> I would like to display a 2D image in a mplot3d axe in order to combine >> it with a surface3D or a bar3d plot for instance. The effect I am >> looking for is similar to what can be seen in the bottom XY plane of >> http://matplotlib.org/1.4.0/examples/mplot3d/contourf3d_demo2.html, >> except that I would like to have a custom image instead of the filled >> contours. >> >> I googled the subject and found only messages dating at best from 2010. >> These messages mentioned that the imshow() method did not work on a >> mplot3d. Indeed it does not. >> The only alternatives offered by the googled answer to my problem were >> to switch to VTK or Mayavi. For one thing, I never managed to install >> VTK on my PC, and I already have other matplotlib figures in my wxpython >> application so I would really like to stick to matplotlib. >> >> Does anyone have pointers as to how I could display a 2D image in >> mplot3d? Do I need to create a new artist in order to replace the >> non-functionning imshow? >> I see that patch collections work fine in mplot3D. Would it be feasible >> to load an image and have it displayed as a patch collection (1 patch >> for each pixel)? >> >> Any advice would be highly appreciated, >> >> Fabrice >> >> >> --- >> This email is free from viruses and malware because avast! Antivirus protection is active. >> http://www.avast.com >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Correction for something I said earlier. I got my pcolor and pcolormesh objects mixed up. Neither the QuadMesh nor the PolyCollection from the two functions are image-based. So they do have a glimmer of hope of being converted into 3d. The PolyCollection is the best candidate as I think there is better support for that now in mplot3d. QuadMesh is a different beast, but might be tamable. Sorry for any confusion. Cheers! Ben Root On Thu, Oct 2, 2014 at 2:03 AM, Nicolas P. Rougier <Nic...@in... > wrote: > > You might want to have a look at vispy.org, we implemented the wx backend > and there are several examples available. > (and the new glumpy home is http://glumpy.github.io) > > vispy examples at http://vispy.org/gallery.html > > > Nicolas > > > On 01 Oct 2014, at 20:27, Fabrice C. <kap...@ya...> wrote: > > > Dear Ben, > > > > Thank you for the explanation. Too bad mplot3d cannot display textured > polygons. > > I did have a look at glumpy and it does part of what I am looking for. > However, glumpy does not support being embedded in a wxpython application > which is a requisite for me. > > > > I guess I just have to learn VTK... > > > > Thanks again, > > > > Fabrice > > > > Benjamin Root <ben...@ou...> wrote: > > > > I tried something like this awhile back to no avail. Because of the > kludgy nature of mplot3d, we are lucky we even can display 2d artists like > polygons (and, this is me speaking as the de facto maintainer of mplot3d!). > Images are an entirely different beast, unfortunately. > > > > What *might* work is getting a pcolormesh object converted into 3d. Not > pcolor (as that is an image-based object), but the QuadMesh object that > gets returned by pcolormesh(). I haven't tried to convert that into a 3d > equivalent, but it might be feasible. > > > > I would also check out glumpy: https://code.google.com/p/glumpy/. I > could have sworn I have seen examples of glumpy treating images as > "texture" data for surfaces. > > > > I hope this points you in a useful direction! > > Ben Root > > > > > > On Tue, Sep 30, 2014 at 5:54 PM, Fabrice C. <kap...@ya...> > wrote: > > Dear list, > > > > I would like to display a 2D image in a mplot3d axe in order to combine > > it with a surface3D or a bar3d plot for instance. The effect I am > > looking for is similar to what can be seen in the bottom XY plane of > > http://matplotlib.org/1.4.0/examples/mplot3d/contourf3d_demo2.html, > > except that I would like to have a custom image instead of the filled > > contours. > > > > I googled the subject and found only messages dating at best from 2010. > > These messages mentioned that the imshow() method did not work on a > > mplot3d. Indeed it does not. > > The only alternatives offered by the googled answer to my problem were > > to switch to VTK or Mayavi. For one thing, I never managed to install > > VTK on my PC, and I already have other matplotlib figures in my wxpython > > application so I would really like to stick to matplotlib. > > > > Does anyone have pointers as to how I could display a 2D image in > > mplot3d? Do I need to create a new artist in order to replace the > > non-functionning imshow? > > I see that patch collections work fine in mplot3D. Would it be feasible > > to load an image and have it displayed as a patch collection (1 patch > > for each pixel)? > > > > Any advice would be highly appreciated, > > > > Fabrice > > > > > > --- > > This email is free from viruses and malware because avast! Antivirus > protection is active. > > http://www.avast.com > > > > > > > ------------------------------------------------------------------------------ > > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
You might want to have a look at vispy.org, we implemented the wx backend and there are several examples available. (and the new glumpy home is http://glumpy.github.io) vispy examples at http://vispy.org/gallery.html Nicolas On 01 Oct 2014, at 20:27, Fabrice C. <kap...@ya...> wrote: > Dear Ben, > > Thank you for the explanation. Too bad mplot3d cannot display textured polygons. > I did have a look at glumpy and it does part of what I am looking for. However, glumpy does not support being embedded in a wxpython application which is a requisite for me. > > I guess I just have to learn VTK... > > Thanks again, > > Fabrice > > Benjamin Root <ben...@ou...> wrote: > > I tried something like this awhile back to no avail. Because of the kludgy nature of mplot3d, we are lucky we even can display 2d artists like polygons (and, this is me speaking as the de facto maintainer of mplot3d!). Images are an entirely different beast, unfortunately. > > What *might* work is getting a pcolormesh object converted into 3d. Not pcolor (as that is an image-based object), but the QuadMesh object that gets returned by pcolormesh(). I haven't tried to convert that into a 3d equivalent, but it might be feasible. > > I would also check out glumpy: https://code.google.com/p/glumpy/. I could have sworn I have seen examples of glumpy treating images as "texture" data for surfaces. > > I hope this points you in a useful direction! > Ben Root > > > On Tue, Sep 30, 2014 at 5:54 PM, Fabrice C. <kap...@ya...> wrote: > Dear list, > > I would like to display a 2D image in a mplot3d axe in order to combine > it with a surface3D or a bar3d plot for instance. The effect I am > looking for is similar to what can be seen in the bottom XY plane of > http://matplotlib.org/1.4.0/examples/mplot3d/contourf3d_demo2.html, > except that I would like to have a custom image instead of the filled > contours. > > I googled the subject and found only messages dating at best from 2010. > These messages mentioned that the imshow() method did not work on a > mplot3d. Indeed it does not. > The only alternatives offered by the googled answer to my problem were > to switch to VTK or Mayavi. For one thing, I never managed to install > VTK on my PC, and I already have other matplotlib figures in my wxpython > application so I would really like to stick to matplotlib. > > Does anyone have pointers as to how I could display a 2D image in > mplot3d? Do I need to create a new artist in order to replace the > non-functionning imshow? > I see that patch collections work fine in mplot3D. Would it be feasible > to load an image and have it displayed as a patch collection (1 patch > for each pixel)? > > Any advice would be highly appreciated, > > Fabrice > > > --- > This email is free from viruses and malware because avast! Antivirus protection is active. > http://www.avast.com > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users