From pi at berkeley.edu Wed Jul 3 18:19:26 2019 From: pi at berkeley.edu (Paul Ivanov) Date: Wed, 3 Jul 2019 15:19:26 -0700 Subject: [Matplotlib-users] REL: Matplotlib 3.1.1 Message-ID: Hi everyone, We are happy to announce the release of Matplotlib 3.1.1! Matplotlib 3.1.1 supports Python 3.6+. This is mostly a bug-fix release, with one API change involving Locator.nonsingular return order. Locator.nonsingular (introduced in matplotlib 3.1.0) now returns a range v0, v1 with v0 <= v1. This behavior is consistent with the implementation of nonsingular by the LogLocator and LogitLocator subclasses. Thanks to everyone who contributed to this release, including 29 folks and one robot who worked together to get 120 pull requests in [1], as well as all the amazing users who reported and raised the issues in the first place. Also a personal thank you to the matplotlib developers who were patient with me making my first solo release. I promise I'll be faster the next go around. :) best, pi 1. https://matplotlib.org/users/github_stats.html -- _ / \ A* \^ - ,./ _.`\\ / \ / ,--.S \/ \ / `"~,_ \ \ __o ? _ \<,_ /:\ --(_)/-(_)----.../ | \ --------------.......J Paul Ivanov https://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From animatore.trps03000x at didasca.org Mon Jul 15 15:05:16 2019 From: animatore.trps03000x at didasca.org (Animatore. TRPS03000X) Date: Mon, 15 Jul 2019 21:05:16 +0200 Subject: [Matplotlib-users] Help request serila data plot, Ubuntu 18 Message-ID: Dear matplot users, I have installed Ubuntu 18 on my computer and Matplotlib, I use it to graph position vs. time of moving objects by serial data. The python script is the following: import matplotlib matplotlib.use("Qt5Agg") import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation from time import sleep import serial import time fine="c" pre="ciao" while (fine != "f"): raw_input("\n\n\n Premi Enter per far partire la registrazione dei dati") xdata, ydata = [], [] ser = serial.Serial('/dev/ttyACM0', 9600) while (False): pre=ser.readline() pre=ser.readline() prec = float(pre) y=prec fig, ax = plt.subplots() line, = ax.plot([], [], lw=2) ax.set_ylim(0, 90) ax.set_xlim(0, 10) ax.grid() def data_gen(): t=0 y=0 cnt=0 p=0 a = ser.readline() while (True)&(t < 10): a = ser.readline() y = float(a) if (y != 0) : t = (time.time() - start) t = float(t) yield t, y def run(data): t,y = data xdata.append(t) ydata.append(y) ax.figure.canvas.draw() line.set_data(xdata, ydata) return line, data_gen.t = 0 while (abs(y-prec) < 2): if True: a = ser.readline() y = float(a) start = time.time() ani = animation.FuncAnimation(fig, run, data_gen, blit=True, interval=5,repeat=False) plt.show() stop =0 fine=raw_input("Premi f per finire :") It works fine, but after the plotting (10 seconds), there is a problem, I cannnot use the tools of the matplot window, i.e. when I try to zoom, after selecting the area, the plot desappear. Can you help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mustapha.adamu at monash.edu Sun Jul 28 01:28:33 2019 From: mustapha.adamu at monash.edu (Mustapha Adamu) Date: Sun, 28 Jul 2019 15:28:33 +1000 Subject: [Matplotlib-users] hatching gets covered by contourf Message-ID: I have 2 arrays arr1 contains correlation values of between -1 to 1 arr2 contains nans and 1's but same shape as arr1 arr1 = 180 * 360 arr2 = 180 * 360 I want to plot arr2 on arr1 as a hatch like this plt.contourf(lon,lat,arr1) plt.pcolor(lon,lat, arr2, hatch = '...', alpha=0) the problem here is that some of the colors in the hatched are covered by the contour plot of arr1 How can I make the hatches apear on top without being blocked by the contours of arr1 sincerely *Mustapha Adamu* -------------- next part -------------- An HTML attachment was scrubbed... URL: From amit at phpandmore.net Tue Jul 30 08:18:12 2019 From: amit at phpandmore.net (Amit Yaron) Date: Tue, 30 Jul 2019 15:18:12 +0300 Subject: [Matplotlib-users] Is the Keyword Argument 'transform' of PathPatch Deprecated? Message-ID: It makes actors disappear ,but when I use 'transform_path' it works fine. Following is an example code snippet: theta=np.arcsin(0.6) trans=transforms.Affine2D().rotate_around(76.5,32.5,theta)#.transform_path(textPath5) pathPatch=patches.PathPatch(textPath5,alpha=1,transform=trans); Thanks, Amit From ndbecker2 at gmail.com Tue Jul 30 10:49:40 2019 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 30 Jul 2019 10:49:40 -0400 Subject: [Matplotlib-users] Interaction of matplotlib with ipython (not notebook) Message-ID: I'm using ipython under emacs python (M-x run-python) ipython arranges that plt.show() does nothing (does not pause). Sometimes I want that, but sometimes I don't (e.g., my program is going to generate an infinite number of plots). How can I stop ipython from disabling plt.show() from pausing? On a related note, I may want to save the figure output rather than drawing to the screen. When run under ipython, figures are drawn to the screen as well as saved if savefig is used, or, same problem with from mplcairo.multipage import MultiPage cm = MultiPage('best_circles_after.pdf') with cm as pdf: .... anyone know how to prevent from drawing to the screen in this case? Thanks, Neal From fiolj at yahoo.com Tue Jul 30 11:01:16 2019 From: fiolj at yahoo.com (Juan) Date: Tue, 30 Jul 2019 12:01:16 -0300 Subject: [Matplotlib-users] Interaction of matplotlib with ipython (not notebook) In-Reply-To: References: Message-ID: <0f406abf-7d3f-c91c-682c-ed9c6cb62612@yahoo.com> Hi Neal, I also use ipython from emacs, but the experience is highly dependent on configuration. I am not sure I am understanding your question: Are you talking about plt.ion(), plt.ioff() ? plt.ion() is for interactive use plt.ioff() for non-interactive. I use it to save the figures without showing in the screen Regards, Juan El 30/7/19 a las 11:49, Neal Becker escribi??: > I'm using ipython under emacs python (M-x run-python) > > ipython arranges that plt.show() does nothing (does not pause). > Sometimes I want that, but sometimes I don't (e.g., my program is going to > generate an infinite number of plots). > > How can I stop ipython from disabling plt.show() from pausing? > > On a related note, I may want to save the figure output rather than drawing > to the screen. When run under ipython, figures are drawn to the screen as > well as saved if savefig is used, or, same problem with > > from mplcairo.multipage import MultiPage > > cm = MultiPage('best_circles_after.pdf') > with cm as pdf: > .... > > anyone know how to prevent from drawing to the screen in this case? > > Thanks, > Neal > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > From ndbecker2 at gmail.com Tue Jul 30 13:15:29 2019 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 30 Jul 2019 13:15:29 -0400 Subject: [Matplotlib-users] Interaction of matplotlib with ipython (not notebook) In-Reply-To: <0f406abf-7d3f-c91c-682c-ed9c6cb62612@yahoo.com> References: <0f406abf-7d3f-c91c-682c-ed9c6cb62612@yahoo.com> Message-ID: Yet, looks like plt.ioff() is what I wanted, Thanks! On Tue, Jul 30, 2019 at 11:01 AM Juan wrote: > > Hi Neal, I also use ipython from emacs, but the experience is highly > dependent on configuration. I am not sure I am understanding your question: > > Are you talking about plt.ion(), plt.ioff() ? > > plt.ion() is for interactive use > plt.ioff() for non-interactive. I use it to save the figures without > showing in the screen > > Regards, > Juan > > El 30/7/19 a las 11:49, Neal Becker escribi??: > > I'm using ipython under emacs python (M-x run-python) > > > > ipython arranges that plt.show() does nothing (does not pause). > > Sometimes I want that, but sometimes I don't (e.g., my program is going to > > generate an infinite number of plots). > > > > How can I stop ipython from disabling plt.show() from pausing? > > > > On a related note, I may want to save the figure output rather than drawing > > to the screen. When run under ipython, figures are drawn to the screen as > > well as saved if savefig is used, or, same problem with > > > > from mplcairo.multipage import MultiPage > > > > cm = MultiPage('best_circles_after.pdf') > > with cm as pdf: > > .... > > > > anyone know how to prevent from drawing to the screen in this case? > > > > Thanks, > > Neal > > > > _______________________________________________ > > Matplotlib-users mailing list > > Matplotlib-users at python.org > > https://mail.python.org/mailman/listinfo/matplotlib-users > > -- Those who don't understand recursion are doomed to repeat it From elch.rz at ruetz-online.de Tue Jul 30 21:39:31 2019 From: elch.rz at ruetz-online.de (Elan Ernest) Date: Wed, 31 Jul 2019 03:39:31 +0200 Subject: [Matplotlib-users] Is the Keyword Argument 'transform' of PathPatch Deprecated? In-Reply-To: References: Message-ID: <45f68249-d52b-5a7e-bbe2-df0e2b42d48f@ruetz-online.de> No, the transform argument is not deprecated, and it works as intended. The problem is that your transform ommits the transformation from the axes' data space to pixels and hence rotates the patch directly in pixel space. To rotate in data space, use transform = trans + ax.transData Am 30.07.2019 um 14:18 schrieb Amit Yaron: > It makes actors disappear ,but when I use 'transform_path' it works fine. > Following is an example code snippet: > > theta=np.arcsin(0.6) > trans=transforms.Affine2D().rotate_around(76.5,32.5,theta)#.transform_path(textPath5) > > pathPatch=patches.PathPatch(textPath5,alpha=1,transform=trans); > > Thanks, > ? Amit > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > >