From mail at willfurnell.com Mon Oct 1 15:40:17 2018 From: mail at willfurnell.com (Will Furnell) Date: Mon, 1 Oct 2018 20:40:17 +0100 Subject: [Matplotlib-users] 3D scatter plot with 'unlimited' Z axis Message-ID: <1e7ccace-61a6-cbac-88c8-9d571f305f9b@willfurnell.com> Hey everyone, I'm looking into a 3D scatter plot - basically converting a NumPy array to a 3D plot, where X and Y correspond to the X and Y co-ordinates on the graph and the Z values corresponds to a particular height on the graph. This is how I'm generating the lists: x = list(range(0, 256)) y = list(range(0, 256)) z = [] for i in range(0, 255): for j in range(0, 255): z.append(ll[i][j]) where ll is my 2D array... I've seen the scatter function with 3d projection, but this requires the Z array length to be the same length as the X and Y lengths, whereas I'll need to be plotting X*Y points (256*256). Is there some way that I could achieve this? Thanks, Will. From ben.v.root at gmail.com Mon Oct 1 16:10:13 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Mon, 1 Oct 2018 16:10:13 -0400 Subject: [Matplotlib-users] 3D scatter plot with 'unlimited' Z axis In-Reply-To: <1e7ccace-61a6-cbac-88c8-9d571f305f9b@willfurnell.com> References: <1e7ccace-61a6-cbac-88c8-9d571f305f9b@willfurnell.com> Message-ID: ``` x = np.arange(256) y = np.arange(256) xx, yy = np.meshgrid(x, y) ``` Then your `xx` and `yy` will be 2D, just like your `ll` variable. Then, you pass the flattened versions of those three variables (i.e., `xx.flatten()` or `xx.flat`) to the 3d scatter call. I hope that helps! Ben Root On Mon, Oct 1, 2018 at 3:47 PM Will Furnell wrote: > Hey everyone, > > I'm looking into a 3D scatter plot - basically converting a NumPy array > to a 3D plot, where X and Y correspond to the X and Y co-ordinates on > the graph and the Z values corresponds to a particular height on the graph. > > This is how I'm generating the lists: > > > x = list(range(0, 256)) > y = list(range(0, 256)) > z = [] > > for i in range(0, 255): > for j in range(0, 255): > z.append(ll[i][j]) > > where ll is my 2D array... > > I've seen the scatter function with 3d projection, but this requires the > Z array length to be the same length as the X and Y lengths, whereas > I'll need to be plotting X*Y points (256*256). Is there some way that I > could achieve this? > > Thanks, > > Will. > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at willfurnell.com Tue Oct 2 06:43:49 2018 From: mail at willfurnell.com (Will Furnell) Date: Tue, 2 Oct 2018 11:43:49 +0100 Subject: [Matplotlib-users] 3D scatter plot with 'unlimited' Z axis In-Reply-To: References: <1e7ccace-61a6-cbac-88c8-9d571f305f9b@willfurnell.com> Message-ID: <228dbbd8-3523-0293-9db0-514492064497@willfurnell.com> Hello Ben, Thank you very much, this works perfectly for me! Best, Will. On 01/10/2018 21:10, Benjamin Root wrote: > ``` > x = np.arange(256) > y = np.arange(256) > xx, yy = np.meshgrid(x, y) > ``` > Then your `xx` and `yy` will be 2D, just like your `ll` variable. Then, > you pass the flattened versions of those three variables (i.e., > `xx.flatten()` or `xx.flat`) to the 3d scatter call. > > I hope that helps! > Ben Root > > > On Mon, Oct 1, 2018 at 3:47 PM Will Furnell > wrote: > > Hey everyone, > > I'm looking into a 3D scatter plot - basically converting a NumPy array > to a 3D plot, where X and Y correspond to the X and Y co-ordinates on > the graph and the Z values corresponds to a particular height on the > graph. > > This is how I'm generating the lists: > > > x = list(range(0, 256)) > y = list(range(0, 256)) > z = [] > > for i in range(0, 255): > ? ? for j in range(0, 255): > ? ? ? ? z.append(ll[i][j]) > > where ll is my 2D array... > > I've seen the scatter function with 3d projection, but this requires the > Z array length to be the same length as the X and Y lengths, whereas > I'll need to be plotting X*Y points (256*256). Is there some way that I > could achieve this? > > Thanks, > > Will. > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > From tcaswell at gmail.com Sun Oct 7 13:15:36 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Sun, 7 Oct 2018 13:15:36 -0400 Subject: [Matplotlib-users] table in a figure In-Reply-To: References: Message-ID: Diego, It is hard to say much without also seeing your csv file. What is the difference between the type and contents of the `collabel` in both cases? It looks like the later returns a tuple instead of a list (see https://docs.scipy.org/doc/numpy-1.15.0/user/basics.rec.html#manipulating-and-displaying-structured-datatypes ). Tom On Sun, Sep 23, 2018 at 3:07 PM Diego Avesani wrote: > Dear all, > > I have a scrip that put a table in a subfigure. > It works well. > However, if I change the data it seems to not work anymore. > I would try to explain myself in a better way > > this is the script: > > def latex_table(celldata,rowlabel,collabel): > table = r'\begin{table} \begin{tabular}{|1|' > for c in range(0,len(collabel)): > # add additional columns > table += r'1|' > table += r'} \hline' > # provide the column headers > for c in range(0,len(collabel)-1): > table += collabel[c] > table += r'&' > table += collabel[-1] > table += r'\\ \hline' > > # populate the table: > # this assumes the format to be celldata[index of rows][index of > columns] > for r in range(0,len(rowlabel)): > table += rowlabel[r] > table += r'&' > for c in range(0,len(collabel)-2): > if not isinstance(celldata[r][c], basestring): > table += str(celldata[r][c]) > else: > table += celldata[r][c] > table += r'&' > > if not isinstance(celldata[r][-1], basestring): > table += str(celldata[r][-1]) > else: > table += celldata[r][-1] > table += r'\\ \hline' > > table += r'\end{tabular} \end{table}' > > return table > > celldata = [[32, r'$\alpha$', 123],[200, 321, 50]] > rowlabel = [r'1st row', r'2nd row'] > collabel = [r' sasas', r'$\alpha$', r'$\beta$', r'$\gamma$'] > > > If I read instead "collabel" as > per_data=np.genfromtxt('2.csv',delimiter=',',names=True) > collabel = per_data.dtype.names > > It does not print some values in collabel > > Can anyone help me? > Really Really Thanks, > > Diego > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jp4work at gmail.com Mon Oct 8 04:25:51 2018 From: jp4work at gmail.com (JIA Pei) Date: Mon, 8 Oct 2018 01:25:51 -0700 Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) Message-ID: My code was running correctly, but now with the following ERROR message: *Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02)* *Aborted (core dumped)* I actually just want to use *matplotlib* as: import matplotlib.pyplot as plt import matplotlib.dates as md Now, whenever I want to use matplotlib, I got the above error... Can anybody help? Cheers -- Pei JIA, Ph.D. Email: jp4work at gmail.com cell in Canada: +1 778-863-5816 cell in China: +86 186-8244-3503 Welcome to Vision Open http://www.visionopen.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.v.root at gmail.com Mon Oct 8 10:49:47 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Mon, 8 Oct 2018 10:49:47 -0400 Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: Did you just recently upgraded to matplotlib v3.0? I am guessing somehow that upgrade also did some things to your QT libraries as well. You can try changing your default backend to something like TkAgg so that it doesn't try the QT based backends. On Mon, Oct 8, 2018 at 4:26 AM JIA Pei wrote: > > My code was running correctly, but now with the following ERROR message: > > *Cannot mix incompatible Qt library (version 0x50b01) with this library > (version 0x50b02)* > *Aborted (core dumped)* > > I actually just want to use *matplotlib* as: > > import matplotlib.pyplot as plt > import matplotlib.dates as md > > > Now, whenever I want to use matplotlib, I got the above error... > > > Can anybody help? > > Cheers > > > -- > > Pei JIA, Ph.D. > > Email: jp4work at gmail.com > cell in Canada: +1 778-863-5816 > cell in China: +86 186-8244-3503 > > Welcome to Vision Open > http://www.visionopen.com > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Wed Oct 10 09:39:31 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Wed, 10 Oct 2018 09:39:31 -0400 Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: Can you do import PyQt without error? I suspect this is due to installation issues between Qt and PyQt versions. On Mon, Oct 8, 2018 at 10:50 AM Benjamin Root wrote: > Did you just recently upgraded to matplotlib v3.0? I am guessing somehow > that upgrade also did some things to your QT libraries as well. You can try > changing your default backend to something like TkAgg so that it doesn't > try the QT based backends. > > On Mon, Oct 8, 2018 at 4:26 AM JIA Pei wrote: > >> >> My code was running correctly, but now with the following ERROR message: >> >> *Cannot mix incompatible Qt library (version 0x50b01) with this library >> (version 0x50b02)* >> *Aborted (core dumped)* >> >> I actually just want to use *matplotlib* as: >> >> import matplotlib.pyplot as plt >> import matplotlib.dates as md >> >> >> Now, whenever I want to use matplotlib, I got the above error... >> >> >> Can anybody help? >> >> Cheers >> >> >> -- >> >> Pei JIA, Ph.D. >> >> Email: jp4work at gmail.com >> cell in Canada: +1 778-863-5816 >> cell in China: +86 186-8244-3503 >> >> Welcome to Vision Open >> http://www.visionopen.com >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilikeorangeapple at gmail.com Wed Oct 10 23:54:55 2018 From: ilikeorangeapple at gmail.com (orange si) Date: Thu, 11 Oct 2018 11:54:55 +0800 Subject: [Matplotlib-users] how to rotate lable of legend in matplotlib Message-ID: hi everyone, I want to roate the label of legend, but I cannot find the parameter of that, thanks for help~ Regard Si -------------- next part -------------- An HTML attachment was scrubbed... URL: From jp4work at gmail.com Thu Oct 11 01:47:32 2018 From: jp4work at gmail.com (jiapei100) Date: Wed, 10 Oct 2018 22:47:32 -0700 (MST) Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: <1539236852090-0.post@n5.nabble.com> I can successfully do *import PyQt5* ----- Welcome to Longer Vision [url]http://www.longervision.ca[/url] -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jp4work at gmail.com Thu Oct 11 02:46:13 2018 From: jp4work at gmail.com (jiapei100) Date: Wed, 10 Oct 2018 23:46:13 -0700 (MST) Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: <1539240373568-0.post@n5.nabble.com> Yes, exactly... $ pip3 show matplotlib Name: matplotlib Version: 3.0.0 Summary: Python plotting package Home-page: http://matplotlib.org Author: John D. Hunter, Michael Droettboom Author-email: matplotlib-users at python.org License: BSD Location: ~/.local/lib/python3.6/site-packages Requires: cycler, python-dateutil, kiwisolver, pyparsing, numpy Required-by: seaborn, scikit-image, pycocotools ----- Welcome to Longer Vision [url]http://www.longervision.ca[/url] -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jp4work at gmail.com Thu Oct 11 02:47:27 2018 From: jp4work at gmail.com (jiapei100) Date: Wed, 10 Oct 2018 23:47:27 -0700 (MST) Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: <1539240447707-0.post@n5.nabble.com> Yes, exactly... $ pip3 show matplotlib Name: matplotlib Version: 3.0.0 Summary: Python plotting package Home-page: http://matplotlib.org Author: John D. Hunter, Michael Droettboom Author-email: matplotlib-users at python.org License: BSD Location: ~/.local/lib/python3.6/site-packages Requires: cycler, python-dateutil, kiwisolver, pyparsing, numpy Required-by: seaborn, scikit-image, pycocotools ----- Welcome to Longer Vision [url]http://www.longervision.ca[/url] -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jp4work at gmail.com Thu Oct 11 03:04:02 2018 From: jp4work at gmail.com (jiapei100) Date: Thu, 11 Oct 2018 00:04:02 -0700 (MST) Subject: [Matplotlib-users] Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped) In-Reply-To: References: Message-ID: <1539241442046-0.post@n5.nabble.com> Problem solved... I upgraded from Qt5.11.1 to Qt5.11.2, and reinstalled PyQt5 ... Thank you everyone... ----- Welcome to Longer Vision [url]http://www.longervision.ca[/url] -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From frederic-emmanuel.picca at synchrotron-soleil.fr Thu Oct 11 04:48:01 2018 From: frederic-emmanuel.picca at synchrotron-soleil.fr (PICCA Frederic-Emmanuel) Date: Thu, 11 Oct 2018 08:48:01 +0000 Subject: [Matplotlib-users] wulff plot Message-ID: Hello, I try to do wulff plot for pole figures in crystallography [1]. I found a project which seems to do the job[2], but it is quite old and not working with the latest numpy vesion. now my question, is is it possible to do this kind of plot (the equal angle[2]), with just matploltlib or basemap ? thanks for your help Fr?d?ric [1] https://en.wikipedia.org/wiki/Stereographic_projection#Wulff_net [2] https://github.com/joferkington/mplstereonet From ben.v.root at gmail.com Fri Oct 12 16:34:36 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Fri, 12 Oct 2018 16:34:36 -0400 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: Message-ID: I would probably try seeing what can be done to fix this package. Most likely it is just doing some deprecated thing that needs to be rewritten in a couple places. I definitely wouldn't try to do it in basemap (or cartopy for that matter) because they are so geared towards cartography. On Fri, Oct 12, 2018 at 4:01 PM PICCA Frederic-Emmanuel < frederic-emmanuel.picca at synchrotron-soleil.fr> wrote: > Hello, I try to do wulff plot for pole figures in crystallography [1]. > > I found a project which seems to do the job[2], but it is quite old and > not working with the latest numpy vesion. > > now my question, is is it possible to do this kind of plot (the equal > angle[2]), with just matploltlib or basemap ? > > thanks for your help > > Fr?d?ric > > [1] https://en.wikipedia.org/wiki/Stereographic_projection#Wulff_net > [2] https://github.com/joferkington/mplstereonet > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From selasley at icloud.com Fri Oct 12 17:33:59 2018 From: selasley at icloud.com (Scott Lasley) Date: Fri, 12 Oct 2018 17:33:59 -0400 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: Message-ID: For what it's worth, the examples on the git repo work on my mac with mplstereonet 0.5 from pypi and with version 0.6-dev installed from the git repo. They work under python 3.6.6 and 3.7.0 with matplotlib 3.0.0 and numpy 1.15.2 > On Oct 11, 2018, at 4:48 AM, PICCA Frederic-Emmanuel wrote: > > Hello, I try to do wulff plot for pole figures in crystallography [1]. > > I found a project which seems to do the job[2], but it is quite old and not working with the latest numpy vesion. > > now my question, is is it possible to do this kind of plot (the equal angle[2]), with just matploltlib or basemap ? > > thanks for your help > > Fr?d?ric > > [1] https://en.wikipedia.org/wiki/Stereographic_projection#Wulff_net > [2] https://github.com/joferkington/mplstereonet > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users From frederic-emmanuel.picca at synchrotron-soleil.fr Sat Oct 13 00:50:37 2018 From: frederic-emmanuel.picca at synchrotron-soleil.fr (PICCA Frederic-Emmanuel) Date: Sat, 13 Oct 2018 04:50:37 +0000 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: , Message-ID: > For what it's worth, the examples on the git repo work on my mac with mplstereonet 0.5 from pypi and with version 0.6-dev installed from the git repo. They work under python 3.6.6 and 3.7.0 with matplotlib 3.0.0 and numpy 1.15.2 I took the version from pypi. I was affected by a bug when using the weight keywork of the contour plot. At some point it compared a numpy array to False, whcih doesnot work anymore. I was asking because it seems to me that the upstream is not active anymore. this is why I was asking if this could be done with a librry which is already available in Debian. Cheers Frederic From ben.v.root at gmail.com Sat Oct 13 10:53:45 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Sat, 13 Oct 2018 10:53:45 -0400 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: Message-ID: Ah, well, have you tried submitting a bug report to the project? Oftentimes, small packages like mplstereonet don't get a lot of activity because they are relatively small and simple and tend to work just fine for most cases. If you provide a traceback, it should be fairly obvious how to fix the bug. On Sat, Oct 13, 2018 at 12:58 AM PICCA Frederic-Emmanuel < frederic-emmanuel.picca at synchrotron-soleil.fr> wrote: > > For what it's worth, the examples on the git repo work on my mac with > mplstereonet 0.5 from pypi and with version 0.6-dev installed from the git > repo. They work under python 3.6.6 and 3.7.0 with matplotlib 3.0.0 and > numpy 1.15.2 > > I took the version from pypi. > I was affected by a bug when using the weight keywork of the contour plot. > At some point it compared a numpy array to False, whcih doesnot work > anymore. > > I was asking because it seems to me that the upstream is not active > anymore. this is why I was asking if this could be done with a librry > which is already available in Debian. > > Cheers > > Frederic > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joferkington at gmail.com Sat Oct 13 12:19:59 2018 From: joferkington at gmail.com (Joe Kington) Date: Sat, 13 Oct 2018 12:19:59 -0400 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: Message-ID: For what it's worth, I'm the author of mplstereonet, and I'd be happy to address your problem. The only numpy depreciations that I'm aware of affecting the project don't actually change any behavior, they just issue warnings that the old behavior was ambiguous. One note: the weights agruments to density contorting are relatively untested and not frequently used. You're likely hitting a corner case that I'm not aware of, but I can confirm that they work for the cases I've tested. If you could add a bit more detail and the traceback you're seeing, I'd love to fix your issue. Thanks! -Joe On Oct 13, 2018 10:54 AM, "Benjamin Root" wrote: Ah, well, have you tried submitting a bug report to the project? Oftentimes, small packages like mplstereonet don't get a lot of activity because they are relatively small and simple and tend to work just fine for most cases. If you provide a traceback, it should be fairly obvious how to fix the bug. On Sat, Oct 13, 2018 at 12:58 AM PICCA Frederic-Emmanuel < frederic-emmanuel.picca at synchrotron-soleil.fr> wrote: > > For what it's worth, the examples on the git repo work on my mac with > mplstereonet 0.5 from pypi and with version 0.6-dev installed from the git > repo. They work under python 3.6.6 and 3.7.0 with matplotlib 3.0.0 and > numpy 1.15.2 > > I took the version from pypi. > I was affected by a bug when using the weight keywork of the contour plot. > At some point it compared a numpy array to False, whcih doesnot work > anymore. > > I was asking because it seems to me that the upstream is not active > anymore. this is why I was asking if this could be done with a librry > which is already available in Debian. > > Cheers > > Frederic > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > _______________________________________________ Matplotlib-users mailing list Matplotlib-users at python.org https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic-emmanuel.picca at synchrotron-soleil.fr Sat Oct 13 13:07:34 2018 From: frederic-emmanuel.picca at synchrotron-soleil.fr (PICCA Frederic-Emmanuel) Date: Sat, 13 Oct 2018 17:07:34 +0000 Subject: [Matplotlib-users] wulff plot In-Reply-To: References: , Message-ID: > For what it's worth, I'm the author of mplstereonet, and I'd be happy to address your problem. Hello, thanks a lot, I will do a MR, next week if I have time :). I would like also to upload it into Debian. Is it ok for you ? Frederic From djpine at gmail.com Tue Oct 16 08:41:11 2018 From: djpine at gmail.com (DJP) Date: Tue, 16 Oct 2018 05:41:11 -0700 (MST) Subject: [Matplotlib-users] matplotlib 3.0 animation blitting bug? Message-ID: <1539693671819-0.post@n5.nabble.com> This looks like a bug to me, but maybe someone knows better... After updating to matplotlib 3.0, I get the following problem on animations that use blitting: A horizontal bar appears at the bottom and a vertical bar on the right of function animation plots. The attached screenshot shows the problem for the "The Bayes update? example from the matplotlib animation examples: https://matplotlib.org/gallery/animation/bayes_update.html#sphx-glr-gallery-animation-bayes-update-py. This same problem occurs on all animation files I?ve tried that use blitting. None of them had the problem before I updated. Interestingly enough, when I save the animation to an mpeg4 file, there is no problem in the saved movie file. This occurs on a system configured as follows: macOS: 10.13.6 Python: 3.7.0 Anaconda distribution matplotlib: 3.0.0 -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From djpine at gmail.com Tue Oct 16 10:36:49 2018 From: djpine at gmail.com (DJP) Date: Tue, 16 Oct 2018 07:36:49 -0700 (MST) Subject: [Matplotlib-users] matplotlib 3.0 animation blitting bug? In-Reply-To: <1539693671819-0.post@n5.nabble.com> References: <1539693671819-0.post@n5.nabble.com> Message-ID: <1539700609425-0.post@n5.nabble.com> I should have stated that I'm using the Qt5Agg backend, which seems to be where the problem lies. The animation works without a problem for the TkAgg backend. -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From tcaswell at gmail.com Tue Oct 16 17:32:47 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Tue, 16 Oct 2018 17:32:47 -0400 Subject: [Matplotlib-users] Matplotlib release plans & dropping py35 Message-ID: Folks, The current proposed release schedule for Matplotlib is: Nov 3-4, 2018 - Matplotlib 2.2.4 LTS - Matplotlib 3.0.1 These are both bug-fix releases. Futher bug-fix releases will be as-needed. April 2019 - Matplotlib 3.1 This will be a feature release and per our dependency policy [1], we plan do drop support for python 3.5 which was initially released in September 2015 [2]. Tom [1] https://matplotlib.org/devdocs/devel/min_dep_policy.html [2] https://www.python.org/dev/peps/pep-0478/ -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ulfjoh1523 at yahoo.com Fri Oct 19 14:39:33 2018 From: ulfjoh1523 at yahoo.com (ulfjoh1523) Date: Fri, 19 Oct 2018 11:39:33 -0700 (MST) Subject: [Matplotlib-users] Issue with pyplot Message-ID: <1539974373405-0.post@n5.nabble.com> Hi, Have a problem that is driving me nuts, and have narrowed it down to pyplot, and anything depending on pyplot. This command works fine: import matplotlib as mpl But when I run import matplotlib.pyplot as plt The python icon in docks starts jumping up and down and I get: [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (preact.min.js.map, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (preact-compat.min.js.map, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (index.js.map, line 0) Running Python 3.7, Matplotlib 3.0 on a Mac OS High Sierra, and all worked fine up till just recently Any ideas anyone? -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From joferkington at gmail.com Fri Oct 19 15:54:28 2018 From: joferkington at gmail.com (Joe Kington) Date: Fri, 19 Oct 2018 14:54:28 -0500 Subject: [Matplotlib-users] Issue with pyplot In-Reply-To: <1539974373405-0.post@n5.nabble.com> References: <1539974373405-0.post@n5.nabble.com> Message-ID: It looks like you might have things configured to default to a different backend than normal. Are you running things inside of a notebook? It looks like it's trying to run one of the web-based backends by default, and that backend can't set things up correctly. What happens if you do: python -c "import matplotlib; matplotlib.use('tkagg'); import matplotlib.pyplot as plt" Or equivalently, try doing: import matplotlib matplotlib.use('tkagg') import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(range(10)) plt.show() If these type of examples work, have a look at which backend you have things set up to use: https://matplotlib.org/faq/usage_faq.html#what-is-a-backend. Hope that helps, -Joe On Fri, Oct 19, 2018 at 1:39 PM ulfjoh1523 via Matplotlib-users < matplotlib-users at python.org> wrote: > Hi, > Have a problem that is driving me nuts, and have narrowed it down to > pyplot, > and anything depending on pyplot. > > This command works fine: > import matplotlib as mpl > > But when I run > import matplotlib.pyplot as plt > > The python icon in docks starts jumping up and down and I get: > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (preact.min.js.map, line 0) > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (preact-compat.min.js.map, line 0) > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (index.js.map, line 0) > > Running Python 3.7, Matplotlib 3.0 on a Mac OS High Sierra, and all worked > fine up till just recently > > Any ideas anyone? > > > > -- > Sent from: > http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ulfjoh1523 at yahoo.com Fri Oct 19 17:19:02 2018 From: ulfjoh1523 at yahoo.com (Ulf Johansson) Date: Fri, 19 Oct 2018 16:19:02 -0500 Subject: [Matplotlib-users] Issue with pyplot In-Reply-To: References: <1539974373405-0.post@n5.nabble.com> Message-ID: Thanks Joe! Changing the backend from ?macosx" to ?tkagg? had no real impact - just that little rocket now bouncing closer to the center of the dock. The only recent, i.e. potentially relevant update I have made is updating to Matplotlib to 3.0 It seems like the ?missing? json-fies, generating a 404 GET when I run Jupyter, are related to scripting Thanks, Ulf Sent from my Mac... Ulf Johansson ulfjoh1523 at yahoo.com > On Oct 19, 2018, at 2:54 PM, Joe Kington wrote: > > It looks like you might have things configured to default to a different backend than normal. Are you running things inside of a notebook? It looks like it's trying to run one of the web-based backends by default, and that backend can't set things up correctly. > > What happens if you do: > > python -c "import matplotlib; matplotlib.use('tkagg'); import matplotlib.pyplot as plt" > > Or equivalently, try doing: > > import matplotlib > matplotlib.use('tkagg') > import matplotlib.pyplot as plt > > fig, ax = plt.subplots() > ax.plot(range(10)) > plt.show() > > If these type of examples work, have a look at which backend you have things set up to use: https://matplotlib.org/faq/usage_faq.html#what-is-a-backend . > > Hope that helps, > -Joe > > On Fri, Oct 19, 2018 at 1:39 PM ulfjoh1523 via Matplotlib-users > wrote: > Hi, > Have a problem that is driving me nuts, and have narrowed it down to pyplot, > and anything depending on pyplot. > > This command works fine: > import matplotlib as mpl > > But when I run > import matplotlib.pyplot as plt > > The python icon in docks starts jumping up and down and I get: > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (preact.min.js.map, line 0) > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (preact-compat.min.js.map, line 0) > [Error] Failed to load resource: the server responded with a status of 404 > (Not Found) (index.js.map, line 0) > > Running Python 3.7, Matplotlib 3.0 on a Mac OS High Sierra, and all worked > fine up till just recently > > Any ideas anyone? > > > > -- > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Fri Oct 19 18:56:56 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Fri, 19 Oct 2018 18:56:56 -0400 Subject: [Matplotlib-users] matplotlib 3.0 animation blitting bug? In-Reply-To: <1539700609425-0.post@n5.nabble.com> References: <1539693671819-0.post@n5.nabble.com> <1539700609425-0.post@n5.nabble.com> Message-ID: David, Is this on a retnia display? If you re-size while the animation is running does it fix it's self? When saving to disk we re-render each frame 'from scratch' so I am not surprised that it does not show up there. Tom On Tue, Oct 16, 2018 at 10:37 AM DJP wrote: > I should have stated that I'm using the Qt5Agg backend, which seems to be > where the problem lies. The animation works without a problem for the TkAgg > backend. > > > > -- > Sent from: > http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Fri Oct 19 20:41:44 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Fri, 19 Oct 2018 20:41:44 -0400 Subject: [Matplotlib-users] matplotlib 3.0 animation blitting bug? In-Reply-To: References: <1539693671819-0.post@n5.nabble.com> <1539700609425-0.post@n5.nabble.com> Message-ID: That does help to localize the bug as Qt has support for high-dpi (to support full resolution figures we have to first ask the desktop to not give us effectively half-resolution and then internally double the rendered resolution) where as tk does not. It looks like something is getting confused about what parts of the buffer need to be updated / restored / cleared during blitting. Tom On Fri, Oct 19, 2018 at 8:09 PM David J Pine wrote: > Hi Tom, > > Yes, it is on a retina display. I can try it on another display when I'm > at work tomorrow. However, resizing the window while running the animation > does not fix the problem. > > David > > On Fri, Oct 19, 2018 at 6:57 PM Thomas Caswell wrote: > >> David, >> >> Is this on a retnia display? If you re-size while the animation is >> running does it fix it's self? >> >> When saving to disk we re-render each frame 'from scratch' so I am not >> surprised that it does not show up there. >> >> Tom >> >> On Tue, Oct 16, 2018 at 10:37 AM DJP wrote: >> >>> I should have stated that I'm using the Qt5Agg backend, which seems to be >>> where the problem lies. The animation works without a problem for the >>> TkAgg >>> backend. >>> >>> >>> >>> -- >>> Sent from: >>> http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Matplotlib-users at python.org >>> https://mail.python.org/mailman/listinfo/matplotlib-users >>> >> >> >> -- >> Thomas Caswell >> tcaswell at gmail.com >> > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.v.root at gmail.com Sat Oct 20 21:16:55 2018 From: ben.v.root at gmail.com (Benjamin Root) Date: Sat, 20 Oct 2018 21:16:55 -0400 Subject: [Matplotlib-users] Issue with pyplot In-Reply-To: References: <1539974373405-0.post@n5.nabble.com> Message-ID: There are some bugfixes in master and slated for v3.0.1 (soon-ish) that may be relevant for your situation. Could you try installing from the master branch? On Fri, Oct 19, 2018 at 5:19 PM Ulf Johansson via Matplotlib-users < matplotlib-users at python.org> wrote: > Thanks Joe! > > Changing the backend from ?macosx" to ?tkagg? had no real impact - just > that little rocket now bouncing closer to the center of the dock. > The only recent, i.e. potentially relevant update I have made is updating > to Matplotlib to 3.0 > > It seems like the ?missing? json-fies, generating a 404 GET when I run > Jupyter, are related to scripting > > Thanks, > Ulf > *Sent from my Mac...* > *Ulf Johansson* > *ulfjoh1523 at yahoo.com * > > > > > On Oct 19, 2018, at 2:54 PM, Joe Kington wrote: > > It looks like you might have things configured to default to a different > backend than normal. Are you running things inside of a notebook? It > looks like it's trying to run one of the web-based backends by default, and > that backend can't set things up correctly. > > What happens if you do: > > python -c "import matplotlib; matplotlib.use('tkagg'); import > matplotlib.pyplot as plt" > > Or equivalently, try doing: > > import matplotlib > matplotlib.use('tkagg') > import matplotlib.pyplot as plt > > fig, ax = plt.subplots() > ax.plot(range(10)) > plt.show() > > If these type of examples work, have a look at which backend you have > things set up to use: > https://matplotlib.org/faq/usage_faq.html#what-is-a-backend. > > Hope that helps, > -Joe > > On Fri, Oct 19, 2018 at 1:39 PM ulfjoh1523 via Matplotlib-users < > matplotlib-users at python.org> wrote: > >> Hi, >> Have a problem that is driving me nuts, and have narrowed it down to >> pyplot, >> and anything depending on pyplot. >> >> This command works fine: >> import matplotlib as mpl >> >> But when I run >> import matplotlib.pyplot as plt >> >> The python icon in docks starts jumping up and down and I get: >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (preact.min.js.map, line 0) >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (preact-compat.min.js.map, line 0) >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (index.js.map, line 0) >> >> Running Python 3.7, Matplotlib 3.0 on a Mac OS High Sierra, and all worked >> fine up till just recently >> >> Any ideas anyone? >> >> >> >> -- >> Sent from: >> http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivasrao.poladi at gmail.com Tue Oct 23 10:39:39 2018 From: srinivasrao.poladi at gmail.com (Srinivasa Rao) Date: Tue, 23 Oct 2018 07:39:39 -0700 (MST) Subject: [Matplotlib-users] 3.0 upgrade Message-ID: <1540305579964-0.post@n5.nabble.com> Hi, I was using Matplotlib ver 2.2.2 on windows 10 using anaconda distribution. Now I have upgraded anaconda distribution with Matplotlib ver 3.0.0. Facing few issues with the code that was working fine with 2.2.2. 1. In 3D plots using mplot3d, for multiple subplots, plt.tight_layout(w_pad=5) worked fine with 2.2.2, but same code is giving the following error , and output display is one long vertical line with some jumbled letters. When I remove titght_layout() statement, I get adequate space in between the plots, but legend overalps with title. How can I fix this overlap issue? 2. For all 3D plots figure size gets too small, compared to the size I used to get with 2.2.2 version. It is the same for single plot or multiple subplots in the figure. Even figsize=(15,10) produces very small figure as attached here whereas 2.2.2 produced full screen figure as shown below. Appreciate any help in resolving these two issues. -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jklymak at uvic.ca Tue Oct 23 11:45:01 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Tue, 23 Oct 2018 08:45:01 -0700 Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <1540305579964-0.post@n5.nabble.com> References: <1540305579964-0.post@n5.nabble.com> Message-ID: > On 23 Oct 2018, at 07:39, Srinivasa Rao wrote: > > Hi, > > I was using Matplotlib ver 2.2.2 on windows 10 using anaconda distribution. > Now I have upgraded anaconda distribution with Matplotlib ver 3.0.0. Facing > few issues with the code that was working fine with 2.2.2. > > 1. In 3D plots using mplot3d, for multiple subplots, > plt.tight_layout(w_pad=5) worked fine with 2.2.2, but same code is giving > the following error > , > > and output display is one long vertical line with some jumbled letters. > When I remove titght_layout() statement, I get adequate space in between the > plots, but legend overalps with title. How can I fix this overlap issue? This will be better in 3.0.x: https://github.com/matplotlib/matplotlib/pull/12241 Take the legend out of the layout: `leg = plt.legend(); leg.set_in_layout(False)` may help, but for 3-d plots there is still the spine issue. Sorry for the bother. > > 2. For all 3D plots figure size gets too small, compared to the size I used > to get with 2.2.2 version. It is the same for single plot or multiple > subplots in the figure. Even figsize=(15,10) produces very small figure as > attached here > > > whereas 2.2.2 produced full screen figure as shown below. > > > Appreciate any help in resolving these two issues. These look like dpi issues. Not sure what is causing that. How are you producing the pngs? Cheers, Jody -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivasrao.poladi at gmail.com Tue Oct 23 12:15:07 2018 From: srinivasrao.poladi at gmail.com (Srinivasa Rao) Date: Tue, 23 Oct 2018 09:15:07 -0700 (MST) Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: References: <1540305579964-0.post@n5.nabble.com> Message-ID: <1540311307969-0.post@n5.nabble.com> Thanks a lot, Judy for quick response. 1. Tried your solution 'leg = plt.legend(); leg.set_in_layout(False)`, unfortunately that has not helped 2. I am running the code in Jupyter Notebook, in the output cell I see figure size much smaller with 3.0.0 compared to 2.2.2. For this post, I saved these output figures from both 3.0.0 and 2.2.2 using mouse right click and save, which by default saves in png format. Hope this helps -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jklymak at uvic.ca Tue Oct 23 12:19:34 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Tue, 23 Oct 2018 09:19:34 -0700 Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <1540311307969-0.post@n5.nabble.com> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> Message-ID: <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> OK, this is all likely https://github.com/matplotlib/matplotlib/pull/12241 Either download and install from master or revert to 2.2.3 until 3.0.1 is out Cheers, Jody > On 23 Oct 2018, at 09:15, Srinivasa Rao wrote: > > 1. Tried your solution 'leg = plt.legend(); leg.set_in_layout(False)`, > unfortunately that has not helped > > 2. I am running the code in Jupyter Notebook, in the output cell I see > figure size much smaller with 3.0.0 compared to 2.2.2. For this post, I > saved these output figures from both 3.0.0 and 2.2.2 using mouse right click > and save, which by default saves in png format. Hope this helps > > > > -- > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivasrao.poladi at gmail.com Tue Oct 23 23:05:17 2018 From: srinivasrao.poladi at gmail.com (Srinivasa Rao) Date: Tue, 23 Oct 2018 20:05:17 -0700 (MST) Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> Message-ID: <1540350317350-0.post@n5.nabble.com> Thanks, Jody I am not customizing spines or any other figure/axes/axis attributes. I am plotting 3D data, for various combination of elevation and rotation parameters, and adding title and legend for each of the axes(each combination of elevation and rotation). Idea is to view the data from different directions. Regarding the figure size issue also, I am not specifying and dpi parameter, but using default setup. Encountered few issues with axes_grid1 toolkit functionality also with version 3.0.0 compared to 2.2.2. Posted them in developer group. I just want to make sure that I am not making any mistake at my end, and if they are real issues with version 3.0.0, let development team know about them so that they can fix them at some point. Thanks once again for your attention and prompt response. Regards PSR -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jklymak at uvic.ca Tue Oct 23 23:07:14 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Tue, 23 Oct 2018 20:07:14 -0700 Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <1540350317350-0.post@n5.nabble.com> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> <1540350317350-0.post@n5.nabble.com> Message-ID: This has all been fixed in https://github.com/matplotlib/matplotlib/pull/12241 . It was definitely a bug in 3.0.0, and will be fixed in 3.0.1 when it is released. Thanks, Jody > On Oct 23, 2018, at 20:05 PM, Srinivasa Rao wrote: > > Thanks, Jody > > I am not customizing spines or any other figure/axes/axis attributes. I am > plotting 3D data, for various combination of elevation and rotation > parameters, and adding title and legend for each of the axes(each > combination of elevation and rotation). Idea is to view the data from > different directions. > > Regarding the figure size issue also, I am not specifying and dpi parameter, > but using default setup. > > Encountered few issues with axes_grid1 toolkit functionality also with > version 3.0.0 compared to 2.2.2. Posted them in developer group. > > I just want to make sure that I am not making any mistake at my end, and if > they are real issues with version 3.0.0, let development team know about > them so that they can fix them at some point. > > Thanks once again for your attention and prompt response. > > Regards > PSR > > > > -- > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivasrao.poladi at gmail.com Tue Oct 23 23:19:23 2018 From: srinivasrao.poladi at gmail.com (Srinivasa Rao) Date: Tue, 23 Oct 2018 20:19:23 -0700 (MST) Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> <1540350317350-0.post@n5.nabble.com> Message-ID: <1540351163658-0.post@n5.nabble.com> I am sorry, I am unable to relate my problems with the issue mentioned in this thread! Have you got a chance to look at my other post in developer group? -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From jklymak at uvic.ca Tue Oct 23 23:47:16 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Tue, 23 Oct 2018 20:47:16 -0700 Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <1540351163658-0.post@n5.nabble.com> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> <1540350317350-0.post@n5.nabble.com> <1540351163658-0.post@n5.nabble.com> Message-ID: <6D1053BD-BEEA-4DF5-833A-9D09E9E13847@uvic.ca> Did you click through to the issue report? https://github.com/matplotlib/matplotlib/issues/12239 Cheers, Jody > On Oct 23, 2018, at 20:19 PM, Srinivasa Rao wrote: > > I am sorry, I am unable to relate my problems with the issue mentioned in > this thread! > > Have you got a chance to look at my other post in developer group? > > > > -- > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From srinivasrao.poladi at gmail.com Wed Oct 24 01:44:14 2018 From: srinivasrao.poladi at gmail.com (Srinivasa Rao) Date: Tue, 23 Oct 2018 22:44:14 -0700 (MST) Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <6D1053BD-BEEA-4DF5-833A-9D09E9E13847@uvic.ca> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> <1540350317350-0.post@n5.nabble.com> <1540351163658-0.post@n5.nabble.com> <6D1053BD-BEEA-4DF5-833A-9D09E9E13847@uvic.ca> Message-ID: <1540359854075-0.post@n5.nabble.com> I am sorry, earlier I clicked thru 12241 thread, which was not clear. This 12239 thread is clear to me now. Any thoughts on other issues that I posted to developer forum(should I also post them on user forum as well?) and figure size issue in 3D plots? Thanks PSR -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html From dieter at werthmuller.org Wed Oct 24 17:10:47 2018 From: dieter at werthmuller.org (=?UTF-8?Q?Dieter_Werthm=c3=bcller?=) Date: Wed, 24 Oct 2018 16:10:47 -0500 Subject: [Matplotlib-users] Range Slider? Message-ID: Hi matplotlib users, Matplotlib has the Slider-widget (matplotlib.widgets.Slider). Is there a way to achieve a range-slider, hence to have a slider where you can drag from both sides and therefore get two values, the minimum and the maximum. For instance as it is implemented in the Jupyter widgets, see https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#IntRangeSlider Thanks, Dieter From douglas.clowes at gmail.com Thu Oct 25 01:08:09 2018 From: douglas.clowes at gmail.com (Douglas Clowes) Date: Thu, 25 Oct 2018 16:08:09 +1100 Subject: [Matplotlib-users] Possible regression in plotting lists of strings after 2.0 In-Reply-To: References: Message-ID: On Thu, Oct 25, 2018 at 2:19 PM Douglas Clowes wrote: > I had a program that seemed to work fine on Fedora 27 (matplotlib 2.0.0) > but exhibits strange behaviour on Fedora 29 (matplotlib 2.2.3) and Rawhide > (matplotlib 3.0.0). Behaviour is the same with either python 2 or 3. > > The following "minimalist" program performs well where "y" is a list of > floats and on 2.0.0 with either floats or strings. On later versions with > strings: > * it plots a straight line > * has y-axis labels on every point > * has linear spacing of non-linear points on y-axis > * pressing "l" (lower-case L) yields a different scale and labels > > With read data (not monotonic) it yields even stranger results. > > Since it used to work, is it expected to work with strings or did I just > get lucky? > > #!/usr/bin/env python3 > import csv > import sys > import matplotlib.pyplot as plt > > x = range(11) > if "-s" in sys.argv: > y = [str(i*i) for i in x] > print("Strings") > else: > y = [i*i for i in x] > print("Floats") > plt.subplot(111) > plt.grid(True) > print("preplot") > plt.plot(x, y, "+-") > print("pretight") > plt.tight_layout() > print("presave") > plt.savefig("plot.svg") > print("preshow") > plt.show() > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Thu Oct 25 16:10:55 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Thu, 25 Oct 2018 16:10:55 -0400 Subject: [Matplotlib-users] REL: Matplotlib 3.0.1 Message-ID: Folks, This is the first bug fix release for the 3.0 series which fixes several - Fix failure to import bug when on Python 3.6.7 and 3.7.1 - Fixed a number of failure to import bugs around finding fonts - Fix Qt4 backend - Fix bug on OSX that recursively searched current directory for fonts - Fix bouncing-rocket on OSX when doing backend fallback and not selecting OSX - Temporarily restore several private APIs to unbreak cartopy - Make pyplot more tolerant of varying signatures in 3rd-party sub-classe - Improve datetime64 unit handling - Fixed several poor interactions with tight_layout The wheels are up on pypi and updated packages are available on main anaconda / conda-forge. A big thank you to the prompt work of the packagers! The documentation will catch up with the release in the next few days. Tom -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglas.clowes at gmail.com Thu Oct 25 19:47:19 2018 From: douglas.clowes at gmail.com (Douglas Clowes) Date: Fri, 26 Oct 2018 10:47:19 +1100 Subject: [Matplotlib-users] Plotting Lists of Strings has high CPU Message-ID: > Strings are now treated as ?categories? rather than cast to floats, and plotted in the order received. > https://matplotlib.org/gallery/lines_bars_and_markers/categorical_variables.html > Cheers, Jody Thanks for that Jody, I did just "get lucky". Some assessment of this shows the high CPU associated with this operation is at least partially avoidable. The majority of the CPU time, according to: python3 -m cProfile -s time plotit.py -s|head -n20 is in or under StrCategoryFormatter._text which seems to be getting called exponentially more times than I would expect. Of the order number of categories squared in my samples, with 40K calls for 100 categories and 4M for 1000 on mpl 2.2 amd 6M on mpl 3.0. Seems high. Within the _text function in 2.2, the most expensive operation is the constant test of the numpy version. This can be significantly reduced by moving the constant expression with a simple change like: diff --git a/lib/matplotlib/category.py b/lib/matplotlib/category.py index b135bff1c..89b1c5bd9 100644 --- a/lib/matplotlib/category.py +++ b/lib/matplotlib/category.py @@ -28,6 +28,8 @@ import matplotlib.ticker as ticker # np 1.6/1.7 support from distutils.version import LooseVersion +NP_PRE_1_7_0 = LooseVersion(np.__version__) < LooseVersion('1.7.0') + VALID_TYPES = tuple(set(six.string_types + (bytes, six.text_type, np.str_, np.bytes_))) @@ -158,7 +160,7 @@ class StrCategoryFormatter(ticker.Formatter): def _text(value): """Converts text values into `utf-8` or `ascii` strings """ - if LooseVersion(np.__version__) < LooseVersion('1.7.0'): + if NP_PRE_1_7_0: if (isinstance(value, (six.text_type, np.unicode))): value = value.encode('utf-8', 'ignore').decode('utf-8') if isinstance(value, (np.bytes_, six.binary_type)): -------------- next part -------------- An HTML attachment was scrubbed... URL: From jklymak at uvic.ca Thu Oct 25 19:58:45 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Thu, 25 Oct 2018 16:58:45 -0700 Subject: [Matplotlib-users] Plotting Lists of Strings has high CPU In-Reply-To: References: Message-ID: Perhaps not surprising that hasn?t been optimized, because most folks don?t have that many categories. If you have an actual use-case for that many categories, submitting a bug report on Github would be great. Cheers, Jody > On Oct 25, 2018, at 16:47 PM, Douglas Clowes wrote: > > > Strings are now treated as ?categories? rather than cast to floats, and plotted in the order received. > > > https://matplotlib.org/gallery/lines_bars_and_markers/categorical_variables.html > > > Cheers, Jody > > Thanks for that Jody, I did just "get lucky". > > Some assessment of this shows the high CPU associated with this operation is at least partially avoidable. > > The majority of the CPU time, according to: > python3 -m cProfile -s time plotit.py -s|head -n20 > is in or under StrCategoryFormatter._text which seems to be getting called exponentially more times than I would expect. Of the order number of categories squared in my samples, with 40K calls for 100 categories and 4M for 1000 on mpl 2.2 amd 6M on mpl 3.0. Seems high. > > Within the _text function in 2.2, the most expensive operation is the constant test of the numpy version. This can be significantly reduced by moving the constant expression with a simple change like: > > diff --git a/lib/matplotlib/category.py b/lib/matplotlib/category.py > index b135bff1c..89b1c5bd9 100644 > --- a/lib/matplotlib/category.py > +++ b/lib/matplotlib/category.py > @@ -28,6 +28,8 @@ import matplotlib.ticker as ticker > # np 1.6/1.7 support > from distutils.version import LooseVersion > > +NP_PRE_1_7_0 = LooseVersion(np.__version__) < LooseVersion('1.7.0') > + > VALID_TYPES = tuple(set(six.string_types + > (bytes, six.text_type, np.str_, np.bytes_))) > > @@ -158,7 +160,7 @@ class StrCategoryFormatter(ticker.Formatter): > def _text(value): > """Converts text values into `utf-8` or `ascii` strings > """ > - if LooseVersion(np.__version__) < LooseVersion('1.7.0'): > + if NP_PRE_1_7_0: > if (isinstance(value, (six.text_type, np.unicode))): > value = value.encode('utf-8', 'ignore').decode('utf-8') > if isinstance(value, (np.bytes_, six.binary_type)): > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Sat Oct 27 12:59:49 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Sat, 27 Oct 2018 12:59:49 -0400 Subject: [Matplotlib-users] Possible regression in plotting lists of strings after 2.0 In-Reply-To: References: Message-ID: This is an intentional change to support categorical string-data (see https://matplotlib.org/gallery/lines_bars_and_markers/categorical_variables.html) in 2.1. Plotting a list of strings that happened to be floats worked <2.1 by chance because there was a `np.asarray(data)` someplace which worked because numpy implicitly did the conversion. You are not the only person to hit this, we miss-estimated how used this accidental feature was, sorry. The most reliable path is to convert your data to numeric types before handing it to Matplotlib (this will be guaranteed to work on all past and future versions of Matplotlib!). Tom On Thu, Oct 25, 2018 at 1:08 AM Douglas Clowes wrote: > > > On Thu, Oct 25, 2018 at 2:19 PM Douglas Clowes > wrote: > >> I had a program that seemed to work fine on Fedora 27 (matplotlib 2.0.0) >> but exhibits strange behaviour on Fedora 29 (matplotlib 2.2.3) and Rawhide >> (matplotlib 3.0.0). Behaviour is the same with either python 2 or 3. >> >> The following "minimalist" program performs well where "y" is a list of >> floats and on 2.0.0 with either floats or strings. On later versions with >> strings: >> * it plots a straight line >> * has y-axis labels on every point >> * has linear spacing of non-linear points on y-axis >> * pressing "l" (lower-case L) yields a different scale and labels >> >> With read data (not monotonic) it yields even stranger results. >> >> Since it used to work, is it expected to work with strings or did I just >> get lucky? >> >> #!/usr/bin/env python3 >> import csv >> import sys >> import matplotlib.pyplot as plt >> >> x = range(11) >> if "-s" in sys.argv: >> y = [str(i*i) for i in x] >> print("Strings") >> else: >> y = [i*i for i in x] >> print("Floats") >> plt.subplot(111) >> plt.grid(True) >> print("preplot") >> plt.plot(x, y, "+-") >> print("pretight") >> plt.tight_layout() >> print("presave") >> plt.savefig("plot.svg") >> print("preshow") >> plt.show() >> > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Sat Oct 27 13:11:27 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Sat, 27 Oct 2018 13:11:27 -0400 Subject: [Matplotlib-users] Range Slider? In-Reply-To: References: Message-ID: Does not appear to be one, but a PR would be welcome to add one! I am not sure if that will actually be easy to add though (as the single-ended slider does not have a notion of 'end' yet or a thumb). The way we achieve this functionality in the subplot tool is to have two sliders (one for the top and one for the bottom) with linked callbacks. Tom On Wed, Oct 24, 2018 at 5:29 PM Dieter Werthm?ller wrote: > Hi matplotlib users, > > Matplotlib has the Slider-widget (matplotlib.widgets.Slider). > > Is there a way to achieve a range-slider, hence to have a slider where > you can drag from both sides and therefore get two values, the minimum > and the maximum. For instance as it is implemented in the Jupyter > widgets, see > > https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#IntRangeSlider > > Thanks, > Dieter > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Sun Oct 28 15:31:08 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Sun, 28 Oct 2018 15:31:08 -0400 Subject: [Matplotlib-users] 3.0 upgrade In-Reply-To: <1540359854075-0.post@n5.nabble.com> References: <1540305579964-0.post@n5.nabble.com> <1540311307969-0.post@n5.nabble.com> <9F9EBD65-B99E-4763-B462-9D4EB58A63CA@uvic.ca> <1540350317350-0.post@n5.nabble.com> <1540351163658-0.post@n5.nabble.com> <6D1053BD-BEEA-4DF5-833A-9D09E9E13847@uvic.ca> <1540359854075-0.post@n5.nabble.com> Message-ID: I don't see a difference in the figure size. Could you post a minimal example that generates the issue you are seeing? That makes it much easier for us to help debug the issue! Tom On Wed, Oct 24, 2018 at 1:44 AM Srinivasa Rao wrote: > I am sorry, earlier I clicked thru 12241 thread, which was not clear. This > 12239 thread is clear to me now. > > Any thoughts on other issues that I posted to developer forum(should I also > post them on user forum as well?) and figure size issue in 3D plots? > > Thanks > PSR > > > > -- > Sent from: > http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ulfjoh1523 at yahoo.com Mon Oct 29 17:11:51 2018 From: ulfjoh1523 at yahoo.com (Ulf Johansson) Date: Mon, 29 Oct 2018 16:11:51 -0500 Subject: [Matplotlib-users] Issue with pyplot In-Reply-To: References: <1539974373405-0.post@n5.nabble.com> Message-ID: <01DA0F60-9ED7-4D67-9F0B-7E8FE46628C3@yahoo.com> Just installed v3.0.1 and indeed, this appears to have solved my issue. No bouncing little rockets and no ?Python (not responding)" from the Activity Monitor Thanks, Ulf Sent from my Mac... Ulf Johansson ulfjoh1523 at yahoo.com > On Oct 20, 2018, at 8:16 PM, Benjamin Root wrote: > > There are some bugfixes in master and slated for v3.0.1 (soon-ish) that may be relevant for your situation. Could you try installing from the master branch? > > On Fri, Oct 19, 2018 at 5:19 PM Ulf Johansson via Matplotlib-users > wrote: > Thanks Joe! > > Changing the backend from ?macosx" to ?tkagg? had no real impact - just that little rocket now bouncing closer to the center of the dock. > The only recent, i.e. potentially relevant update I have made is updating to Matplotlib to 3.0 > > It seems like the ?missing? json-fies, generating a 404 GET when I run Jupyter, are related to scripting > > Thanks, > Ulf > Sent from my Mac... > Ulf Johansson > ulfjoh1523 at yahoo.com > > > > >> On Oct 19, 2018, at 2:54 PM, Joe Kington > wrote: >> >> It looks like you might have things configured to default to a different backend than normal. Are you running things inside of a notebook? It looks like it's trying to run one of the web-based backends by default, and that backend can't set things up correctly. >> >> What happens if you do: >> >> python -c "import matplotlib; matplotlib.use('tkagg'); import matplotlib.pyplot as plt" >> >> Or equivalently, try doing: >> >> import matplotlib >> matplotlib.use('tkagg') >> import matplotlib.pyplot as plt >> >> fig, ax = plt.subplots() >> ax.plot(range(10)) >> plt.show() >> >> If these type of examples work, have a look at which backend you have things set up to use: https://matplotlib.org/faq/usage_faq.html#what-is-a-backend . >> >> Hope that helps, >> -Joe >> >> On Fri, Oct 19, 2018 at 1:39 PM ulfjoh1523 via Matplotlib-users > wrote: >> Hi, >> Have a problem that is driving me nuts, and have narrowed it down to pyplot, >> and anything depending on pyplot. >> >> This command works fine: >> import matplotlib as mpl >> >> But when I run >> import matplotlib.pyplot as plt >> >> The python icon in docks starts jumping up and down and I get: >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (preact.min.js.map, line 0) >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (preact-compat.min.js.map, line 0) >> [Error] Failed to load resource: the server responded with a status of 404 >> (Not Found) (index.js.map, line 0) >> >> Running Python 3.7, Matplotlib 3.0 on a Mac OS High Sierra, and all worked >> fine up till just recently >> >> Any ideas anyone? >> >> >> >> -- >> Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniele at grinta.net Tue Oct 30 17:35:12 2018 From: daniele at grinta.net (Daniele Nicolodi) Date: Tue, 30 Oct 2018 15:35:12 -0600 Subject: [Matplotlib-users] Arranging subplots on a square regular grid Message-ID: Hello, I would like to arrange a number of square subplots (as in subplots with square axes as obtained with `ax.axis('equal')`) in a grid such that the distance between rows and columns is exactly the same. I can use a GridSpec but, as soon as I ask for the axes to be square, the distance between axes changes. Is there a way to enforce the equal distances constrain (namely stretch the padding between the axes and the margin of the figure but do not stretch the padding between axes) or the only solution is to do it manually? Thank you in advance. Best, Dan From joferkington at gmail.com Wed Oct 31 11:30:06 2018 From: joferkington at gmail.com (Joe Kington) Date: Wed, 31 Oct 2018 10:30:06 -0500 Subject: [Matplotlib-users] Arranging subplots on a square regular grid In-Reply-To: References: Message-ID: If you're okay with a fixed figure size, you can use plt.figaspect to set this up fairly easily: (i.e. this will be incorrect as soon as you resize the plot window) import numpy as npimport matplotlib.pyplot as plt nrows, ncols = 8, 12 dx, dy = 1, 2 figsize = plt.figaspect(float(dy * nrows) / float(dx * ncols)) fig, axes = plt.subplots(nrows, ncols, figsize=figsize)for ax in axes.flat: data = np.random.random((10*dy, 10*dx)) ax.imshow(data, interpolation='none', cmap='gray') ax.set(xticks=[], yticks=[]) pad = 0.05 # Padding around the edge of the figure xpad, ypad = dx * pad, dy * pad fig.subplots_adjust(left=xpad, right=1-xpad, top=1-ypad, bottom=ypad) plt.show() (From here, for reference: https://stackoverflow.com/questions/32633322/changing-aspect-ratio-of-subplots-in-matplotlib/32635933#32635933 ) If you need the spacing to remain constant as the figure size changes, it's possible, but more complex. You may find it's easiest to use draw callbacks in that case. Hope that helps, -Joe On Tue, Oct 30, 2018 at 4:44 PM Daniele Nicolodi wrote: > Hello, > > I would like to arrange a number of square subplots (as in subplots with > square axes as obtained with `ax.axis('equal')`) in a grid such that the > distance between rows and columns is exactly the same. > > I can use a GridSpec but, as soon as I ask for the axes to be square, > the distance between axes changes. Is there a way to enforce the equal > distances constrain (namely stretch the padding between the axes and the > margin of the figure but do not stretch the padding between axes) or the > only solution is to do it manually? > > Thank you in advance. > > Best, > Dan > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jklymak at uvic.ca Wed Oct 31 11:38:31 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Wed, 31 Oct 2018 08:38:31 -0700 Subject: [Matplotlib-users] Arranging subplots on a square regular grid In-Reply-To: References: Message-ID: Hi Daniele, This is also explicitly the use-case that `axes_grid1` toolkit is meant for. I?m trying to move as much axes_grid1 stuff out of the toolkit into the main code as possible, but what you want is orthogonal to how layout managers that are currently in matplotlib work, so axes_grid1 is still useful here. https://matplotlib.org/gallery/axes_grid1/simple_axesgrid.html Cheers, Jody > On 31 Oct 2018, at 08:30, Joe Kington wrote: > > If you're okay with a fixed figure size, you can use plt.figaspect to set this up fairly easily: (i.e. this will be incorrect as soon as you resize the plot window) > > import numpy as np > import matplotlib.pyplot as plt > > nrows, ncols = 8, 12 > dx, dy = 1, 2 > figsize = plt.figaspect(float(dy * nrows) / float(dx * ncols)) > > fig, axes = plt.subplots(nrows, ncols, figsize=figsize) > for ax in axes.flat: > data = np.random.random((10*dy, 10*dx)) > ax.imshow(data, interpolation='none', cmap='gray') > ax.set(xticks=[], yticks=[]) > > pad = 0.05 # Padding around the edge of the figure > xpad, ypad = dx * pad, dy * pad > fig.subplots_adjust(left=xpad, right=1-xpad, top=1-ypad, bottom=ypad) > > plt.show() > (From here, for reference: https://stackoverflow.com/questions/32633322/changing-aspect-ratio-of-subplots-in-matplotlib/32635933#32635933 ) > If you need the spacing to remain constant as the figure size changes, it's possible, but more complex. You may find it's easiest to use draw callbacks in that case. > Hope that helps, > -Joe > > On Tue, Oct 30, 2018 at 4:44 PM Daniele Nicolodi > wrote: > Hello, > > I would like to arrange a number of square subplots (as in subplots with > square axes as obtained with `ax.axis('equal')`) in a grid such that the > distance between rows and columns is exactly the same. > > I can use a GridSpec but, as soon as I ask for the axes to be square, > the distance between axes changes. Is there a way to enforce the equal > distances constrain (namely stretch the padding between the axes and the > margin of the figure but do not stretch the padding between axes) or the > only solution is to do it manually? > > Thank you in advance. > > Best, > Dan > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniele at grinta.net Wed Oct 31 12:14:53 2018 From: daniele at grinta.net (Daniele Nicolodi) Date: Wed, 31 Oct 2018 10:14:53 -0600 Subject: [Matplotlib-users] Arranging subplots on a square regular grid In-Reply-To: References: Message-ID: <8ff29902-607a-ab53-f8d1-29dd69095731@grinta.net> On 31-10-2018 09:38, Jody Klymak wrote: > This is also explicitly the use-case that `axes_grid1` toolkit is meant > for. ? I?m trying to move as much axes_grid1 stuff out of the toolkit > into the main code as possible, but what you want is orthogonal to how > layout managers that are currently in matplotlib work, so axes_grid1 is > still useful here.? > > https://matplotlib.org/gallery/axes_grid1/simple_axesgrid.html Hi Jody, thank you very much. That's exactly what I was looking for! I don't know how I missed it in the documentation. It would be very nice if this could expose an API similar to the GridSpec one, but I don't know how feasible this is. Thanks, Dan