From efiring at hawaii.edu Mon Aug 1 03:16:06 2016 From: efiring at hawaii.edu (Eric Firing) Date: Sun, 31 Jul 2016 21:16:06 -1000 Subject: [Matplotlib-users] Matplotlib for image processing In-Reply-To: <1AF2F015-0D03-40A7-8980-E27682CB804A@gmail.com> References: <1AF2F015-0D03-40A7-8980-E27682CB804A@gmail.com> Message-ID: <134b694c-961c-1415-3a1a-0dc0e6948d6c@hawaii.edu> On 2016/07/31 5:40 PM, Dipankar ?Dipu? Ganguly wrote: > I am trying to teach myself matplotlib for my latest image processing > project as a replacement for Matlab. I am also using Jupyter. > Any pointers to tutorials and/or documents on the topic would be very > helpful indeed Have you investigated scikit-image? (http://scikit-image.org/) The documentation includes many examples. Eric From jfoxrabinovitz at gmail.com Mon Aug 1 09:29:37 2016 From: jfoxrabinovitz at gmail.com (Joseph Fox-Rabinovitz) Date: Mon, 1 Aug 2016 09:29:37 -0400 Subject: [Matplotlib-users] Optimally displaying 7 X-Y plots in one window In-Reply-To: References: Message-ID: https://xkcd.com/1530/ On Sun, Jul 31, 2016 at 4:07 PM, Jens Nielsen wrote: > did you sent this a bit to early. The last sentence seems to finish rather > abruptly > > On Sun, 31 Jul 2016 at 20:58 Jon Roadley-Battin > wrote: >> >> Good evening, >> >> I manage a small application where I work that captures data from some >> bespoke hardware (via USB) and if so which, plot 7 channels. >> >> At the moment I just plot the 7 waveforms, with a bit of decorating and >> for the most part this is fine. There are some relatively common occurrences >> of data which makes viewing within the application ... tricky >> >> Say for insta >> _______________________________________________ >> 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 > From jarausch at skynet.be Wed Aug 3 09:06:00 2016 From: jarausch at skynet.be (Helmut Jarausch) Date: Wed, 03 Aug 2016 15:06:00 +0200 Subject: [Matplotlib-users] Cannot connect NavigationToolbar2QT Message-ID: Hi, I haven't used Matplotlib for a while but now I cannot use it anymore. Even the simplest vector plot gives import matplotlib.pyplot as plt >>> x=[0.0,0.1,0.2,0.3,0.4,0.5] >>> y=[x[i]**2 for i in range(0,6)] >>> plt.plot(x,y) QObject::connect: Cannot connect NavigationToolbar2QT::message(QString) to (null)::_show_message() Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line 3147, in plot ax = gca() File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line 928, in gca return gcf().gca(**kwargs) File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line 578, in gcf return figure() File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line 527, in figure **kwargs) File "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 43, in new_figure_manager return new_figure_manager_given_figure(num, thisFig) File "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 51, in new_figure_manager_given_figure return FigureManagerQT(canvas, num) File "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5.py", line 465, in __init__ self.toolbar.message.connect(self._show_message) TypeError: connect() failed between NavigationToolbar2QT.message[str] and _show_message() Has anybody got an idea what's going wrong here? I have compiled Matploblib from source on my Gentoo system using Python 3.5.2 with the gtk3 and qt5 backend. Many thanks for a hint, Helmut From tcaswell at gmail.com Wed Aug 3 09:38:25 2016 From: tcaswell at gmail.com (Thomas Caswell) Date: Wed, 03 Aug 2016 13:38:25 +0000 Subject: [Matplotlib-users] Cannot connect NavigationToolbar2QT In-Reply-To: References: Message-ID: This is the same as https://github.com/matplotlib/matplotlib/issues/6853 which is fixed by https://github.com/matplotlib/matplotlib/pull/6854 Tom On Wed, Aug 3, 2016 at 9:06 AM Helmut Jarausch wrote: > Hi, > > I haven't used Matplotlib for a while but now I cannot use it anymore. > Even the simplest vector plot gives > > import matplotlib.pyplot as plt > >>> x=[0.0,0.1,0.2,0.3,0.4,0.5] > >>> y=[x[i]**2 for i in range(0,6)] > >>> plt.plot(x,y) > QObject::connect: Cannot connect NavigationToolbar2QT::message(QString) > to (null)::_show_message() > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line > 3147, in plot > ax = gca() > File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line > 928, in gca > return gcf().gca(**kwargs) > File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line > 578, in gcf > return figure() > File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line > 527, in figure > **kwargs) > File > "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", > line 43, in new_figure_manager > return new_figure_manager_given_figure(num, thisFig) > File > "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", > line 51, in new_figure_manager_given_figure > return FigureManagerQT(canvas, num) > File > "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5.py", > line 465, in __init__ > self.toolbar.message.connect(self._show_message) > TypeError: connect() failed between NavigationToolbar2QT.message[str] > and _show_message() > > > Has anybody got an idea what's going wrong here? > > I have compiled Matploblib from source on my Gentoo system using Python > 3.5.2 with the gtk3 and qt5 backend. > > Many thanks for a hint, > Helmut > _______________________________________________ > 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 antony.lee at berkeley.edu Wed Aug 3 17:47:56 2016 From: antony.lee at berkeley.edu (Antony Lee) Date: Wed, 3 Aug 2016 14:47:56 -0700 Subject: [Matplotlib-users] [Matplotlib-devel] New "data cursors for matplotlib" package: https://github.com/anntzer/mplcursors In-Reply-To: References: Message-ID: I'd be happy to give it a try once the new toolbar becomes usable from Qt (which is the backend I use all the time) :-) Note that you can currently already activate mplcursors for any of your scripts just by setting the MPLCURSORS environment variable to a JSON-encoded kwargs that will get passed to `mplcursors.cursor()` -- the simplest being `MPLCURSORS={} python foo.py`. Antony 2016-08-03 11:56 GMT-07:00 Federico Ariza : > Hi > > Super cool! > > One idea. Why not add a simple tool (new ToolManager) to > activate/deactivate the mplcursors at will from the toolbar? > If you need help don't hesitate to contact me > > If it does adapt well as a Tool we can talk about a PR to add it as a > standard tool. > > Good job > Federico > > On Jul 28, 2016 2:09 PM, "Antony Lee" wrote: > > > 2016-07-28 9:51 GMT-07:00 Benjamin Root : > >> Hey, that is pretty slick! I especially like the decorator option to >> connecting events to the cursor objects. >> > This is a pretty common pattern nowadays, probably could be added to > matplotlib's event handling code itself. > > >> >> Kudos! >> >> Ben Root >> >> On Sun, Jul 24, 2016 at 8:41 PM, Antony Lee >> wrote: >> >>> Hi all, >>> >>> I have written a new "data cursors for matplotlib" package, inspired >>> from @joferkington's mpldatacursor but rewritten from scratch, with a much >>> simpler API. Please have a look at >>> https://github.com/anntzer/mplcursors . >>> >>> I hope you'll like it. >>> >>> Antony >>> >>> _______________________________________________ >>> Matplotlib-devel mailing list >>> Matplotlib-devel at python.org >>> https://mail.python.org/mailman/listinfo/matplotlib-devel >>> >>> >> > > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel at python.org > https://mail.python.org/mailman/listinfo/matplotlib-devel > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From borreguero at gmail.com Thu Aug 4 10:50:41 2016 From: borreguero at gmail.com (Jose Borreguero) Date: Thu, 4 Aug 2016 10:50:41 -0400 Subject: [Matplotlib-users] newbie, please give me some pointers where to start for the shown graph Message-ID: Dear Matplotlib users, I have a fancy graph created in Origin that I want to emulate with matplotlib: The curves S(Q,w) have each a constant value for Q, they are stacked along the Q-axis. I'm a newbie with matplotlib, can you please give me some pointers, like which classes should I employ to make this figure? .Jose ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: junk.jpg Type: image/jpeg Size: 134820 bytes Desc: not available URL: From ben.v.root at gmail.com Thu Aug 4 11:05:07 2016 From: ben.v.root at gmail.com (Benjamin Root) Date: Thu, 4 Aug 2016 11:05:07 -0400 Subject: [Matplotlib-users] newbie, please give me some pointers where to start for the shown graph In-Reply-To: References: Message-ID: The gallery is an excellent place to start for questions like these. Here is the mplot3d section: http://matplotlib.org/gallery.html#mplot3d Your figure is a combination of the 3d plot() calls for the line portions, and 3d scatter() calls for the dots (see http://matplotlib.org/examples/mplot3d/scatter3d_demo.html), and mathtext for the labels (see http://matplotlib.org/examples/pylab_examples/mathtext_demo.html). Let us know if you have questions. Cheers! Ben Root On Thu, Aug 4, 2016 at 10:50 AM, Jose Borreguero wrote: > Dear Matplotlib users, > > I have a fancy graph created in Origin that I want to emulate with > matplotlib: > The curves S(Q,w) have each a constant value for Q, they are stacked along > the Q-axis. I'm a newbie with matplotlib, can you please give me some > pointers, like which classes should I employ to make this figure? > > .Jose > ? > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: junk.jpg Type: image/jpeg Size: 134820 bytes Desc: not available URL: From dipugee at gmail.com Thu Aug 4 11:14:56 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Thu, 4 Aug 2016 08:14:56 -0700 Subject: [Matplotlib-users] newbie, please give me some pointers where to start for the shown graph In-Reply-To: References: Message-ID: <23E93533-DE66-4A1F-B397-67C7DB8152F1@gmail.com> This is great Benjamin. Can you send the link to a similar gallery of image reading and display functions? I am especially interested in reading, writing and processing DICOM ultrasound images. Thanks. Dipu Dipankar Ganguly Consultant: Strategy/Technology/Commercialization Bothell, WA Cell: 408-203-8814 email: dipugee at gmail.com http://www.linkedin.com/in/dipugee > On Aug 4, 2016, at 8:05 AM, Benjamin Root wrote: > > The gallery is an excellent place to start for questions like these. Here is the mplot3d section: http://matplotlib.org/gallery.html#mplot3d > > Your figure is a combination of the 3d plot() calls for the line portions, and 3d scatter() calls for the dots (see http://matplotlib.org/examples/mplot3d/scatter3d_demo.html ), and mathtext for the labels (see http://matplotlib.org/examples/pylab_examples/mathtext_demo.html ). Let us know if you have questions. > > Cheers! > Ben Root > > > On Thu, Aug 4, 2016 at 10:50 AM, Jose Borreguero > wrote: > Dear Matplotlib users, > > I have a fancy graph created in Origin that I want to emulate with matplotlib: > > The curves S(Q,w) have each a constant value for Q, they are stacked along the Q-axis. I'm a newbie with matplotlib, can you please give me some pointers, like which classes should I employ to make this figure? > > .Jose > ? > > _______________________________________________ > 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 dipugee at gmail.com Thu Aug 4 11:22:01 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Thu, 4 Aug 2016 08:22:01 -0700 Subject: [Matplotlib-users] newbie, please give me some pointers where to start for the shown graph In-Reply-To: References: Message-ID: <24BD57E0-2017-427D-A652-B3A5A824239D@gmail.com> I have a newbie question? What does this syntax really do? I would really like to understand the basic principles invoked here, especially the function of the ?.? separator. Is there a tutorial that will help me with such things? Thanks. Dipu from matplotlib.pyplot import figure, show Dipankar Ganguly Consultant: Strategy/Technology/Commercialization Bothell, WA Cell: 408-203-8814 email: dipugee at gmail.com http://www.linkedin.com/in/dipugee > On Aug 4, 2016, at 8:05 AM, Benjamin Root wrote: > > The gallery is an excellent place to start for questions like these. Here is the mplot3d section: http://matplotlib.org/gallery.html#mplot3d > > Your figure is a combination of the 3d plot() calls for the line portions, and 3d scatter() calls for the dots (see http://matplotlib.org/examples/mplot3d/scatter3d_demo.html ), and mathtext for the labels (see http://matplotlib.org/examples/pylab_examples/mathtext_demo.html ). Let us know if you have questions. > > Cheers! > Ben Root > > > On Thu, Aug 4, 2016 at 10:50 AM, Jose Borreguero > wrote: > Dear Matplotlib users, > > I have a fancy graph created in Origin that I want to emulate with matplotlib: > > The curves S(Q,w) have each a constant value for Q, they are stacked along the Q-axis. I'm a newbie with matplotlib, can you please give me some pointers, like which classes should I employ to make this figure? > > .Jose > ? > > _______________________________________________ > 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 ben.v.root at gmail.com Thu Aug 4 12:01:23 2016 From: ben.v.root at gmail.com (Benjamin Root) Date: Thu, 4 Aug 2016 12:01:23 -0400 Subject: [Matplotlib-users] newbie, please give me some pointers where to start for the shown graph In-Reply-To: <24BD57E0-2017-427D-A652-B3A5A824239D@gmail.com> References: <24BD57E0-2017-427D-A652-B3A5A824239D@gmail.com> Message-ID: Dipu, I think you would benefit from Software Carpentry lessons to give you a leg up. It is geared towards scientists, but it should be useful none-the-less: http://software-carpentry.org/lessons/ My personal recommendation for a book is O'Reilly's "Learning Python": http://shop.oreilly.com/product/0636920028154.do. I read this book during a 4 hour plane ride. I got on the plane with no python knowledge, and I came off the plane with enough knowledge to understand the examples posted online and ask specific questions on mailing lists. I hope these suggestions are useful! Ben Root On Thu, Aug 4, 2016 at 11:22 AM, Dipankar ?Dipu? Ganguly wrote: > I have a newbie question? > > What does this syntax really do? I would really like to understand the > basic principles invoked here, especially the function of the ?.? > separator. Is there a tutorial that will help me with such things? > > Thanks. > > Dipu > > from matplotlib.pyplot import figure, show > > Dipankar Ganguly > Consultant: Strategy/Technology/Commercialization > Bothell, WA > Cell: 408-203-8814 > email: dipugee at gmail.com > http://www.linkedin.com/in/dipugee > > > > > > > > > > On Aug 4, 2016, at 8:05 AM, Benjamin Root wrote: > > The gallery is an excellent place to start for questions like these. Here > is the mplot3d section: http://matplotlib.org/gallery.html#mplot3d > > Your figure is a combination of the 3d plot() calls for the line portions, > and 3d scatter() calls for the dots (see http://matplotlib.org/ > examples/mplot3d/scatter3d_demo.html), and mathtext for the labels (see > http://matplotlib.org/examples/pylab_examples/mathtext_demo.html). Let us > know if you have questions. > > Cheers! > Ben Root > > > On Thu, Aug 4, 2016 at 10:50 AM, Jose Borreguero > wrote: > >> Dear Matplotlib users, >> >> I have a fancy graph created in Origin that I want to emulate with >> matplotlib: >> >> The curves S(Q,w) have each a constant value for Q, they are stacked >> along the Q-axis. I'm a newbie with matplotlib, can you please give me some >> pointers, like which classes should I employ to make this figure? >> >> .Jose >> ? >> >> _______________________________________________ >> 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 jslavin at cfa.harvard.edu Thu Aug 4 15:04:57 2016 From: jslavin at cfa.harvard.edu (Slavin, Jonathan) Date: Thu, 4 Aug 2016 15:04:57 -0400 Subject: [Matplotlib-users] combining line plot with grid of images Message-ID: Hi all, I've been trying to create a plot that includes 3 images and one line plot in a 2 x 2 arrangement. I've used mpl_toolkits.axes_grid1.ImageGrid before to successfully create 2 x 2 grids of all images, but in this case the inclusion of the line plot, with different x and y scales, seems to mess the whole thing up. I've included the share_all = False argument to AxesGrid, but it doesn't help. If I do something like: grid = AxesGrid(fig, 111, nrows_ncols=(2,2), share_all=False) grid[0].imshow(img0) grid[1].imshow(img1) grid[2].imshow(img2) all is okay, though a blank plot is shown in the bottom right position. If I then do something like grid[3].plot(x,y) with x and y having different dimensions from the images, then all the image panels are messed up. I would've thought that setting share_all = False would have prevented that. Any suggestions would be appreciated. Thanks, Jon -- ________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA jslavin at cfa.harvard.edu 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipugee at gmail.com Thu Aug 11 00:33:35 2016 From: dipugee at gmail.com (Dipugee) Date: Wed, 10 Aug 2016 21:33:35 -0700 (MST) Subject: [Matplotlib-users] Source code Message-ID: <1470890015795-47375.post@n5.nabble.com> Is there a way for me to access the source code for the edge filters in matplotlib?Thanks.Dipu -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Source-code-tp47375.html Sent from the matplotlib - users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmhobson at gmail.com Thu Aug 11 00:58:12 2016 From: pmhobson at gmail.com (Paul Hobson) Date: Wed, 10 Aug 2016 21:58:12 -0700 Subject: [Matplotlib-users] Source code In-Reply-To: <1470890015795-47375.post@n5.nabble.com> References: <1470890015795-47375.post@n5.nabble.com> Message-ID: On Wed, Aug 10, 2016 at 9:33 PM, Dipugee wrote: > Is there a way for me to access the source code for the edge filters in > matplotlib? Thanks. Dipu > ------------------------------ > Matplotlib is an open source project. The source code is hosting on github: https://github.com/matplotlib/matplotlib -------------- next part -------------- An HTML attachment was scrubbed... URL: From dipugee at gmail.com Thu Aug 11 01:53:59 2016 From: dipugee at gmail.com (Dipugee) Date: Wed, 10 Aug 2016 22:53:59 -0700 (MST) Subject: [Matplotlib-users] Source code In-Reply-To: References: <1470890015795-47375.post@n5.nabble.com> Message-ID: Thanks Paul. I am new to Python and Github. There is lot to dig through. Can you point to a link/document that gives me a searchable roadmap and/or index for all the code elements for matplotlib. Dipu Dipankar ?Dipu? Ganguly dipugee at gmail.com Cell: 408-203-8814 > On Aug 10, 2016, at 9:59 PM, Paul Hobson-2 [via matplotlib] wrote: > > > > On Wed, Aug 10, 2016 at 9:33 PM, Dipugee <[hidden email] > wrote: > Is there a way for me to access the source code for the edge filters in matplotlib? Thanks. Dipu > > Matplotlib is an open source project. The source code is hosting on github: https://github.com/matplotlib/matplotlib > > > _______________________________________________ > Matplotlib-users mailing list > [hidden email] > https://mail.python.org/mailman/listinfo/matplotlib-users > > > If you reply to this email, your message will be added to the discussion below: > http://matplotlib.1069221.n5.nabble.com/Source-code-tp47375p47376.html > To unsubscribe from Source code, click here . > NAML -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Source-code-tp47375p47377.html Sent from the matplotlib - users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From efiring at hawaii.edu Thu Aug 11 02:15:39 2016 From: efiring at hawaii.edu (Eric Firing) Date: Wed, 10 Aug 2016 20:15:39 -1000 Subject: [Matplotlib-users] Source code In-Reply-To: <1470890015795-47375.post@n5.nabble.com> References: <1470890015795-47375.post@n5.nabble.com> Message-ID: On 2016/08/10 6:33 PM, Dipugee wrote: > Is there a way for me to access the source code for the edge filters in > matplotlib? Thanks. Dipu I'm not aware that we have edge filters at all. It sounds like maybe you need scikit-image, not matplotlib. Eric From jenshnielsen at gmail.com Thu Aug 11 12:47:34 2016 From: jenshnielsen at gmail.com (Jens Nielsen) Date: Thu, 11 Aug 2016 16:47:34 +0000 Subject: [Matplotlib-users] Fw: Matplotlib Figure margin transparancy In-Reply-To: <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> Message-ID: The relevant parameters are figure.facecolor and savefigure.facecolor but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 best Jens On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > Thank you Benjamin & Jens, > I have registered in > python.org now. Regarding the issue I had already checked the > matplotlibrc parameters. I tried increasing margin option but resulting in > only plot getting shrunk. There is no apparent effect for facecolor > parameter. May I know which parameter sets the margin as non-transparent? > With best regards, > Sudheer > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root > wrote: > > The other reason why this message never got posted is because this message > was sent to the now defunct mailing list hosted by sourceforge. The mailing > list moved about a year ago (I think) to python.org. You will have to > subscribe in order to post unmoderated. > > https://mail.python.org/mailman/listinfo/matplotlib-users > > Ben Root > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen > wrote: > > At least for me gmail put your mail in the spam folder. > > Anyway the inline backend is actually from in IPython/Jupyter and not in > matplotlib. I think they have changed the default a couple of times and had > the transparent as a default earlier but changed it. Looking at the current > master it looks like they are respecting the matplotlib default colors > from the matplotlib rc params. Can you please check which version on > IPython and Jupyter you are running. > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ > users/customizing.html# customizing-matplotlib > but > the default ones should be white. > > best > Jens > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph > wrote: > > Hi, > I have send below query to matplotlib user group recently but did not get > posted so far. Can you please tell me is there is any thin wrong with the > message? > With best regards, > Sudheer > > > > > Dear Expert, > > Recently after up-gradation of matplotlib and ubuntu > 16.04 I am > > getting transparent figure axis when using the "linux color scheme" > > option in ipython qtconsole. May I know if there is a way to fix this > issue?. I > > wanted to keep black screen as it reduces eye strain. > > > > ipython qtconsole --matplotlib inline > > > > If I save the image i am able to get axis properly but to see on screen > as the > > axis is not plotted with white background the black axis line and labels > are not > > visible. Earlier I used to get figures as attached in second figure. > > Earlier Satus which I am looking for below link > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > Present status without boarder below link > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > Kindly suggest a solution > > with best regards, > > Sudheer > > > > ------------------------------ ------------------------------ > ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > > > Matplotlib-users at lists. sourceforge.net > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > ------------------------------ ------------------------------ > ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > Matplotlib-users at lists. sourceforge.net > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sudheer.joseph at yahoo.com Thu Aug 11 12:53:40 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Thu, 11 Aug 2016 16:53:40 +0000 (UTC) Subject: [Matplotlib-users] Fw: Matplotlib Figure margin transparancy In-Reply-To: References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> Message-ID: <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } Thank you,I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. Sudheer? Sent from Yahoo Mail for iPhone On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: The relevant parameters are? figure.facecolor andsavefigure.facecolor but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are runningI think the issue that you are seeing is?https://github.com/ipython/ipython/issues/7964?which was fixed in IPython 3.2 bestJens On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: Thank you Benjamin & Jens,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent?With best regards,Sudheer On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. https://mail.python.org/mailman/listinfo/matplotlib-users Ben Root On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: At least for me gmail put your mail in the spam folder. Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. ? You can change the matplotlib rc parameters as described in the docs?http://matplotlib.org/ users/customizing.html# customizing-matplotlib?but the default ones should be white. bestJens On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: Hi, I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? With best regards, Sudheer > > Dear Expert, >? ? ? ? ? ? ? ? ?Recently after up-gradation of matplotlib and ubuntu 16.04 I am > getting transparent figure axis when using the "linux color scheme" > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > wanted to keep black screen as it reduces eye strain. > > ipython qtconsole --matplotlib inline > > If I save the image i am able to get axis properly but to see on screen as the > axis is not plotted with white background the black axis line and labels are not > visible. Earlier I used to get figures as attached in second figure. > Earlier Satus which I am looking for below link > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > Present status without boarder below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > Kindly suggest a solution > with best regards, > Sudheer > ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sudheer.joseph at yahoo.com Fri Aug 12 02:23:06 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Fri, 12 Aug 2016 06:23:06 +0000 (UTC) Subject: [Matplotlib-users] Fw: Matplotlib Figure margin transparancy In-Reply-To: <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> Thank you I got it fixed after following the link of bug report.I have added?rcParams['figure.facecolor'] = 'w' in 00_startup.py file in my ipython startup directory which fixed the issue?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: #yiv4255857767 blockquote, #yiv4255857767 div.yiv4255857767yahoo_quoted {margin-left:0 !important;border-left:1px #715FFA solid !important;padding-left:1ex !important;background-color:white;} Thank you,I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. Sudheer? Sent from Yahoo Mail for iPhone On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: The relevant parameters are? figure.facecolor andsavefigure.facecolor but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are runningI think the issue that you are seeing is?https://github.com/ipython/ipython/issues/7964?which was fixed in IPython 3.2 bestJens On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: Thank you Benjamin & Jens,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent?With best regards,Sudheer On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. https://mail.python.org/mailman/listinfo/matplotlib-users Ben Root On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: At least for me gmail put your mail in the spam folder. Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. ? You can change the matplotlib rc parameters as described in the docs?http://matplotlib.org/ users/customizing.html# customizing-matplotlib?but the default ones should be white. bestJens On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: Hi, I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? With best regards, Sudheer > > Dear Expert, >? ? ? ? ? ? ? ? ?Recently after up-gradation of matplotlib and ubuntu 16.04 I am > getting transparent figure axis when using the "linux color scheme" > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > wanted to keep black screen as it reduces eye strain. > > ipython qtconsole --matplotlib inline > > If I save the image i am able to get axis properly but to see on screen as the > axis is not plotted with white background the black axis line and labels are not > visible. Earlier I used to get figures as attached in second figure. > Earlier Satus which I am looking for below link > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > Present status without boarder below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > Kindly suggest a solution > with best regards, > Sudheer > ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/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 sudheer.joseph at yahoo.com Sat Aug 13 13:54:04 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Sat, 13 Aug 2016 17:54:04 +0000 (UTC) Subject: [Matplotlib-users] Fw: Matplotlib Figure margin transparancy In-Reply-To: <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> Message-ID: <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> Hi all,? ? ? ? ? ? ? ? After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode .If I start?sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline[TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. I wont sart qtconsole.If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.pyIf I go to any other directory it wont take the configuration file.I have below line in the above ipython_config.pyc.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' However none works for me to make pylab inline option.Can any one throw some light in to this issue? sjo at SJOLTP../.jupyter~$ lsipython_config.py ?jupyter.desktop ? ? jupyter_qtconsole_config.py ?pynb ?startupipython.desktop ? ?jupyter_nb.desktop ?migrated ? ? ? ? ? ? ? ? ? ? qtpysjo at SJOLTP../.jupyter~$ pwd/home/sjo/.jupytersjo at SJOLTP../.jupyter~$ lsipython_config.py ?jupyter.desktop ? ? jupyter_qtconsole_config.py ?pynb ?startupipython.desktop ? ?jupyter_nb.desktop ?migrated ? ? ? ? ? ? ? ? ? ? qtpysjo at SJOLTP../.jupyter~$ jupyter --version4.1.1sjo at SJOLTP../.jupyter~$ ipython --version5.0.0sjo at SJOLTP../.jupyter~$? ?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: Thank you I got it fixed after following the link of bug report.I have added?rcParams['figure.facecolor'] = 'w' in 00_startup.py file in my ipython startup directory which fixed the issue?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: #yiv4716847049 blockquote, #yiv4716847049 div.yiv4716847049yahoo_quoted {margin-left:0 !important;border-left:1px #715FFA solid !important;padding-left:1ex !important;background-color:white;} Thank you,I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. Sudheer? Sent from Yahoo Mail for iPhone On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: The relevant parameters are? figure.facecolor andsavefigure.facecolor but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are runningI think the issue that you are seeing is?https://github.com/ipython/ipython/issues/7964?which was fixed in IPython 3.2 bestJens On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: Thank you Benjamin & Jens,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent?With best regards,Sudheer On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. https://mail.python.org/mailman/listinfo/matplotlib-users Ben Root On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: At least for me gmail put your mail in the spam folder. Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. ? You can change the matplotlib rc parameters as described in the docs?http://matplotlib.org/ users/customizing.html# customizing-matplotlib?but the default ones should be white. bestJens On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: Hi, I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? With best regards, Sudheer > > Dear Expert, >? ? ? ? ? ? ? ? ?Recently after up-gradation of matplotlib and ubuntu 16.04 I am > getting transparent figure axis when using the "linux color scheme" > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > wanted to keep black screen as it reduces eye strain. > > ipython qtconsole --matplotlib inline > > If I save the image i am able to get axis properly but to see on screen as the > axis is not plotted with white background the black axis line and labels are not > visible. Earlier I used to get figures as attached in second figure. > Earlier Satus which I am looking for below link > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > Present status without boarder below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > Kindly suggest a solution > with best regards, > Sudheer > ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/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 selasley at icloud.com Sat Aug 13 19:18:52 2016 From: selasley at icloud.com (Scott Lasley) Date: Sat, 13 Aug 2016 19:18:52 -0400 Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> Message-ID: <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> If I launch jupyter with the --pylab flag it exits with this message $ jupyter qtconsole --pylab ... [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? $ jupyter qtconsole (then in the QtConsole window enter) In [1]: %pylab Using matplotlib backend: MacOSX Populating the interactive namespace from numpy and matplotlib In [2]: %matplotlib inline In [3]: plot([1, 2, 3]) plots in the QtConsole window. This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1. Note that I had some problems with the qtconsole when using the %pylab magic. It's possible the problems arose because I'm using the beta version of matplotlib 2. hth, Scott > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > Hi all, > After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > If I start > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > I wont sart qtconsole. > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > If I go to any other directory it wont take the configuration file. > I have below line in the above ipython_config.py > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > However none works for me to make pylab inline option. > Can any one throw some light in to this issue? > > sjo at SJOLTP../.jupyter~$ ls > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > ipython.desktop jupyter_nb.desktop migrated qtpy > sjo at SJOLTP../.jupyter~$ pwd > /home/sjo/.jupyter > sjo at SJOLTP../.jupyter~$ ls > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > ipython.desktop jupyter_nb.desktop migrated qtpy > sjo at SJOLTP../.jupyter~$ jupyter --version > 4.1.1 > sjo at SJOLTP../.jupyter~$ ipython --version > 5.0.0 > sjo at SJOLTP../.jupyter~$ > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > Thank you I got it fixed after following the link of bug report. > I have added > rcParams['figure.facecolor'] = 'w' > in 00_startup.py file in my ipython startup directory which fixed the issue > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > Thank you, > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > Sudheer > Sent from Yahoo Mail for iPhone > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > The relevant parameters are > > figure.facecolor > and > savefigure.facecolor > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > best > Jens > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > Thank you Benjamin & Jens, > I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > With best regards, > Sudheer > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > https://mail.python.org/mailman/listinfo/matplotlib-users > > Ben Root > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > At least for me gmail put your mail in the spam folder. > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > best > Jens > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > Hi, > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > With best regards, > Sudheer > > > > > Dear Expert, > > Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > getting transparent figure axis when using the "linux color scheme" > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > wanted to keep black screen as it reduces eye strain. > > > > ipython qtconsole --matplotlib inline > > > > If I save the image i am able to get axis properly but to see on screen as the > > axis is not plotted with white background the black axis line and labels are not > > visible. Earlier I used to get figures as attached in second figure. > > Earlier Satus which I am looking for below link > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > Present status without boarder below link > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > Kindly suggest a solution > > with best regards, > > Sudheer > > > > ------------------------------ ------------------------------ ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > > Matplotlib-users at lists. sourceforge.net > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > ------------------------------ ------------------------------ ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > Matplotlib-users at lists. sourceforge.net > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > _______________________________________________ > 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 From sudheer.joseph at yahoo.com Sat Aug 13 19:55:27 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Sat, 13 Aug 2016 23:55:27 +0000 (UTC) Subject: [Matplotlib-users] Fw: Matplotlib Figure margin transparancy In-Reply-To: <56AE0915-8E3A-4E1D-9BB3-574E5E8F33F5@gmail.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <56AE0915-8E3A-4E1D-9BB3-574E5E8F33F5@gmail.com> Message-ID: <2031483027.12670880.1471132527107.JavaMail.yahoo@mail.yahoo.com> Hi Thanks,I wanted to say both ipython and jupyter do not work and gives errors after installation of jupyter as below. jupyter qtconsole --pylab inline [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization:[JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' ?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Sunday, 14 August 2016 12:30 AM, Josh Devlin wrote: Replace ipython with jupyter in your command. Sent from my iPhone On Aug 13, 2016, at 10:54 AM, Sudheer Joseph via Matplotlib-users wrote: Hi all,? ? ? ? ? ? ? ? After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode .If I start?sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline[TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. I wont sart qtconsole.If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.pyIf I go to any other directory it wont take the configuration file.I have below line in the above ipython_config.pyc.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' However none works for me to make pylab inline option.Can any one throw some light in to this issue? sjo at SJOLTP../.jupyter~$ lsipython_config.py ?jupyter.desktop ? ? jupyter_qtconsole_config.py ?pynb ?startupipython.desktop ? ?jupyter_nb.desktop ?migrated ? ? ? ? ? ? ? ? ? ? qtpysjo at SJOLTP../.jupyter~$ pwd/home/sjo/.jupytersjo at SJOLTP../.jupyter~$ lsipython_config.py ?jupyter.desktop ? ? jupyter_qtconsole_config.py ?pynb ?startupipython.desktop ? ?jupyter_nb.desktop ?migrated ? ? ? ? ? ? ? ? ? ? qtpysjo at SJOLTP../.jupyter~$ jupyter --version4.1.1sjo at SJOLTP../.jupyter~$ ipython --version5.0.0sjo at SJOLTP../.jupyter~$? ?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: Thank you I got it fixed after following the link of bug report.I have added?rcParams['figure.facecolor'] = 'w' in 00_startup.py file in my ipython startup directory which fixed the issue?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: Thank you,I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. Sudheer? Sent from Yahoo Mail for iPhone On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: The relevant parameters are? figure.facecolor andsavefigure.facecolor but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are runningI think the issue that you are seeing is?https://github.com/ipython/ipython/issues/7964?which was fixed in IPython 3.2 bestJens On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: Thank you Benjamin & Jens,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent?With best regards,Sudheer On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. https://mail.python.org/mailman/listinfo/matplotlib-users Ben Root On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: At least for me gmail put your mail in the spam folder. Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. ? You can change the matplotlib rc parameters as described in the docs?http://matplotlib.org/ users/customizing.html# customizing-matplotlib?but the default ones should be white. bestJens On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: Hi, I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? With best regards, Sudheer > > Dear Expert, >? ? ? ? ? ? ? ? ?Recently after up-gradation of matplotlib and ubuntu 16.04 I am > getting transparent figure axis when using the "linux color scheme" > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > wanted to keep black screen as it reduces eye strain. > > ipython qtconsole --matplotlib inline > > If I save the image i am able to get axis properly but to see on screen as the > axis is not plotted with white background the black axis line and labels are not > visible. Earlier I used to get figures as attached in second figure. > Earlier Satus which I am looking for below link > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > Present status without boarder below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > Kindly suggest a solution > with best regards, > Sudheer > ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users ------------------------------ ------------------------------ ------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev ______________________________ _________________ Matplotlib-users mailing list Matplotlib-users at lists. sourceforge.net https://lists.sourceforge.net/ lists/listinfo/matplotlib- users _______________________________________________ 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 sudheer.joseph at yahoo.com Sat Aug 13 20:34:48 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Sun, 14 Aug 2016 00:34:48 +0000 (UTC) Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> Message-ID: <62698539.133989.1471134888875@mail.yahoo.com> Thank you for the reply,Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal with best regards,Suhdheer On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: If I launch jupyter with the --pylab flag it exits with this message $ jupyter qtconsole --pylab ... [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? $ jupyter qtconsole (then in the QtConsole window enter) In [1]: %pylab Using matplotlib backend: MacOSX Populating the interactive namespace from numpy and matplotlib In [2]: %matplotlib inline In [3]: plot([1, 2, 3]) plots in the QtConsole window. This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1.? Note that I had some problems with the qtconsole when using the %pylab magic.? It's possible the problems arose because I'm using the beta version of matplotlib 2. hth, Scott > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > Hi all, >? ? ? ? ? ? ? ? After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > If I start > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > I wont sart qtconsole. > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > If I go to any other directory it wont take the configuration file. > I have below line in the above ipython_config.py > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > However none works for me to make pylab inline option. > Can any one throw some light in to this issue? > > sjo at SJOLTP../.jupyter~$ ls > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > sjo at SJOLTP../.jupyter~$ pwd > /home/sjo/.jupyter > sjo at SJOLTP../.jupyter~$ ls > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > sjo at SJOLTP../.jupyter~$ jupyter --version > 4.1.1 > sjo at SJOLTP../.jupyter~$ ipython --version > 5.0.0 > sjo at SJOLTP../.jupyter~$ > >? > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > Thank you I got it fixed after following the link of bug report. > I have added > rcParams['figure.facecolor'] = 'w' > in 00_startup.py file in my ipython startup directory which fixed the issue >? > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > Thank you, > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > Sudheer > Sent from Yahoo Mail for iPhone > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > The relevant parameters are > > figure.facecolor > and > savefigure.facecolor > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > best > Jens > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > Thank you Benjamin & Jens, >? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > With best regards, > Sudheer > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > https://mail.python.org/mailman/listinfo/matplotlib-users > > Ben Root > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > At least for me gmail put your mail in the spam folder. > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running.? > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > best > Jens > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > Hi, > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > With best regards, > Sudheer > > > > > Dear Expert, > >? ? ? ? ? ? ? ? Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > getting transparent figure axis when using the "linux color scheme" > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > wanted to keep black screen as it reduces eye strain. > > > > ipython qtconsole --matplotlib inline > > > > If I save the image i am able to get axis properly but to see on screen as the > > axis is not plotted with white background the black axis line and labels are not > > visible. Earlier I used to get figures as attached in second figure. > > Earlier Satus which I am looking for below link > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > Present status without boarder below link > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > Kindly suggest a solution > > with best regards, > > Sudheer > > > > ------------------------------ ------------------------------ ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > > Matplotlib-users at lists. sourceforge.net > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > ------------------------------ ------------------------------ ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > ______________________________ _________________ > Matplotlib-users mailing list > Matplotlib-users at lists. sourceforge.net > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > _______________________________________________ > 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 selasley at icloud.com Sat Aug 13 23:06:35 2016 From: selasley at icloud.com (Scott Lasley) Date: Sat, 13 Aug 2016 23:06:35 -0400 Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <62698539.133989.1471134888875@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> Message-ID: <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory. It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac. Here's how I was able to get jupyter qtconsole to launch with %pylab inline Create the default ipython profile files. I think this will overwrite any old default profile files so make a backup if you want to keep the old files $ ipython3 profile create Find the location of your default profile $ export myipython=$(ipython3 locate profile) Edit the ipython_config.py file in your default profile directory $ pico "$myipython"/ipython_config.py Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports. See the "$myipython"/startup/README file for more info Here's the docs on configuring recent versions of ipython http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory Best regards, Scott > On Aug 13, 2016, at 20:34, Sudheer Joseph wrote: > > Thank you for the reply, > Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal > > > with best regards, > Suhdheer > On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: > > > If I launch jupyter with the --pylab flag it exits with this message > $ jupyter qtconsole --pylab > ... > [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: > [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' > > Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? > > $ jupyter qtconsole > (then in the QtConsole window enter) > In [1]: %pylab > Using matplotlib backend: MacOSX > Populating the interactive namespace from numpy and matplotlib > > In [2]: %matplotlib inline > > In [3]: plot([1, 2, 3]) > > plots in the QtConsole window. > > This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1. Note that I had some problems with the qtconsole when using the %pylab magic. It's possible the problems arose because I'm using the beta version of matplotlib 2. > > hth, > Scott > > > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > > > Hi all, > > After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > > If I start > > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > > > I wont sart qtconsole. > > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > > If I go to any other directory it wont take the configuration file. > > I have below line in the above ipython_config.py > > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > > > However none works for me to make pylab inline option. > > Can any one throw some light in to this issue? > > > > sjo at SJOLTP../.jupyter~$ ls > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > ipython.desktop jupyter_nb.desktop migrated qtpy > > sjo at SJOLTP../.jupyter~$ pwd > > /home/sjo/.jupyter > > sjo at SJOLTP../.jupyter~$ ls > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > ipython.desktop jupyter_nb.desktop migrated qtpy > > sjo at SJOLTP../.jupyter~$ jupyter --version > > 4.1.1 > > sjo at SJOLTP../.jupyter~$ ipython --version > > 5.0.0 > > sjo at SJOLTP../.jupyter~$ > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > > > > Thank you I got it fixed after following the link of bug report. > > I have added > > rcParams['figure.facecolor'] = 'w' > > in 00_startup.py file in my ipython startup directory which fixed the issue > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > > > > > Thank you, > > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > > > Sudheer > > Sent from Yahoo Mail for iPhone > > > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > > The relevant parameters are > > > > figure.facecolor > > and > > savefigure.facecolor > > > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > > > > best > > Jens > > > > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > > Thank you Benjamin & Jens, > > I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > > With best regards, > > Sudheer > > > > > > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > > > https://mail.python.org/mailman/listinfo/matplotlib-users > > > > Ben Root > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > > At least for me gmail put your mail in the spam folder. > > > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. > > > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > > > best > > Jens > > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > > Hi, > > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > > With best regards, > > Sudheer > > > > > > > > Dear Expert, > > > Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > > getting transparent figure axis when using the "linux color scheme" > > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > > wanted to keep black screen as it reduces eye strain. > > > > > > ipython qtconsole --matplotlib inline > > > > > > If I save the image i am able to get axis properly but to see on screen as the > > > axis is not plotted with white background the black axis line and labels are not > > > visible. Earlier I used to get figures as attached in second figure. > > > Earlier Satus which I am looking for below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > > Present status without boarder below link > > > > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > > > Kindly suggest a solution > > > with best regards, > > > Sudheer > > > > > > > ------------------------------ ------------------------------ ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > patterns at an interface-level. Reveals which users, apps, and protocols are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev > > ______________________________ _________________ > > Matplotlib-users mailing list > > > > Matplotlib-users at lists. sourceforge.net > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > ------------------------------ ------------------------------ ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > patterns at an interface-level. Reveals which users, apps, and protocols are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev > > ______________________________ _________________ > > Matplotlib-users mailing list > > Matplotlib-users at lists. sourceforge.net > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > _______________________________________________ > > 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 > > From sudheer.joseph at yahoo.com Sat Aug 13 23:18:56 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Sun, 14 Aug 2016 03:18:56 +0000 (UTC) Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> Message-ID: <703791605.12336194.1471144736220.JavaMail.yahoo@mail.yahoo.com> Thank you,? ? ? ? ? ? ? ? ? I am facing a problem that edges are becoming transparent after fixing the inline issue. with ipython it was possible to ?fix this issue by configuring startup files as below. But jupyter seems not taking startup filesWith best regards.Sudheer /home/sjo/.ipython/profile_default/startupsjo at SJOLTP../startup~$ ls00-path_set.py ?README ?XX00-path_set.pysjo at SJOLTP../startup~$ cat 00-path_set.py?import sysimport matplotlib as mplmpl.rcParams['figure.facecolor'] = 'w'mypath="/home/sjo/PKGS/SJO_PY_CODES"sys.path.append(mypath) ?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** From: Scott Lasley To: Sudheer Joseph Cc: "matplotlib-users at python.org" Sent: Sunday, 14 August 2016 8:36 AM Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory.? It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac.? Here's how I was able to get jupyter qtconsole to launch with %pylab inline Create the default ipython profile files.? I think this will overwrite any old default profile files so make a backup if you want to keep the old files $ ipython3 profile create Find the location of your default profile $ export myipython=$(ipython3 locate profile) Edit the ipython_config.py file in your default profile directory $ pico "$myipython"/ipython_config.py Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports.? See the "$myipython"/startup/README file for more info Here's the docs on configuring recent versions of ipython http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory Best regards, Scott > On Aug 13, 2016, at 20:34, Sudheer Joseph wrote: > > Thank you for the reply, > Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal > > > with best regards, > Suhdheer > On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: > > > If I launch jupyter with the --pylab flag it exits with this message > $ jupyter qtconsole --pylab > ... > [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: > [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' > > Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? > > $ jupyter qtconsole > (then in the QtConsole window enter) > In [1]: %pylab > Using matplotlib backend: MacOSX > Populating the interactive namespace from numpy and matplotlib > > In [2]: %matplotlib inline > > In [3]: plot([1, 2, 3]) > > plots in the QtConsole window. > > This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1.? Note that I had some problems with the qtconsole when using the %pylab magic.? It's possible the problems arose because I'm using the beta version of matplotlib 2. > > hth, > Scott > > > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > > > Hi all, > >? ? ? ? ? ? ? ? After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > > If I start > > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > > > I wont sart qtconsole. > > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > > If I go to any other directory it wont take the configuration file. > > I have below line in the above ipython_config.py > > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > > > However none works for me to make pylab inline option. > > Can any one throw some light in to this issue? > > > > sjo at SJOLTP../.jupyter~$ ls > > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > > sjo at SJOLTP../.jupyter~$ pwd > > /home/sjo/.jupyter > > sjo at SJOLTP../.jupyter~$ ls > > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > > sjo at SJOLTP../.jupyter~$ jupyter --version > > 4.1.1 > > sjo at SJOLTP../.jupyter~$ ipython --version > > 5.0.0 > > sjo at SJOLTP../.jupyter~$ > > > >? > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > > > > Thank you I got it fixed after following the link of bug report. > > I have added > > rcParams['figure.facecolor'] = 'w' > > in 00_startup.py file in my ipython startup directory which fixed the issue > >? > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > > > > > Thank you, > > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > > > Sudheer > > Sent from Yahoo Mail for iPhone > > > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > > The relevant parameters are > > > > figure.facecolor > > and > > savefigure.facecolor > > > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > > > > best > > Jens > > > > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > > Thank you Benjamin & Jens, > >? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > > With best regards, > > Sudheer > > > > > > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > > > https://mail.python.org/mailman/listinfo/matplotlib-users > > > > Ben Root > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > > At least for me gmail put your mail in the spam folder. > > > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running.? > > > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > > > best > > Jens > > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > > Hi, > > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > > With best regards, > > Sudheer > > > > > > > > Dear Expert, > > >? ? ? ? ? ? ? ? Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > > getting transparent figure axis when using the "linux color scheme" > > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > > wanted to keep black screen as it reduces eye strain. > > > > > > ipython qtconsole --matplotlib inline > > > > > > If I save the image i am able to get axis properly but to see on screen as the > > > axis is not plotted with white background the black axis line and labels are not > > > visible. Earlier I used to get figures as attached in second figure. > > > Earlier Satus which I am looking for below link > > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > > Present status without boarder below link > > > > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > > > Kindly suggest a solution > > > with best regards, > > > Sudheer > > > > > > > ------------------------------ ------------------------------ ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > patterns at an interface-level. Reveals which users, apps, and protocols are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev > > ______________________________ _________________ > > Matplotlib-users mailing list > > > > Matplotlib-users at lists. sourceforge.net > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > ------------------------------ ------------------------------ ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > patterns at an interface-level. Reveals which users, apps, and protocols are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev > > ______________________________ _________________ > > Matplotlib-users mailing list > > Matplotlib-users at lists. sourceforge.net > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > _______________________________________________ > > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: blob.jpg Type: image/png Size: 102105 bytes Desc: not available URL: From dipugee at gmail.com Sat Aug 13 23:17:53 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Sat, 13 Aug 2016 20:17:53 -0700 Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> Message-ID: What happens with such issues if one uses Jupyter from within Anaconda?s Navigator on a Mac running OS 10.11.6? Dipankar Ganguly Consultant: Strategy/Technology/Commercialization Bothell, WA Cell: 408-203-8814 email: dipugee at gmail.com http://www.linkedin.com/in/dipugee > On Aug 13, 2016, at 8:06 PM, Scott Lasley wrote: > > It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory. It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac. Here's how I was able to get jupyter qtconsole to launch with %pylab inline > > Create the default ipython profile files. I think this will overwrite any old default profile files so make a backup if you want to keep the old files > $ ipython3 profile create > Find the location of your default profile > $ export myipython=$(ipython3 locate profile) > Edit the ipython_config.py file in your default profile directory > $ pico "$myipython"/ipython_config.py > Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' > > If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports. See the "$myipython"/startup/README file for more info > > Here's the docs on configuring recent versions of ipython > http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory > > Best regards, > Scott > >> On Aug 13, 2016, at 20:34, Sudheer Joseph wrote: >> >> Thank you for the reply, >> Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal >> >> >> with best regards, >> Suhdheer >> On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: >> >> >> If I launch jupyter with the --pylab flag it exits with this message >> $ jupyter qtconsole --pylab >> ... >> [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: >> [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' >> >> Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? >> >> $ jupyter qtconsole >> (then in the QtConsole window enter) >> In [1]: %pylab >> Using matplotlib backend: MacOSX >> Populating the interactive namespace from numpy and matplotlib >> >> In [2]: %matplotlib inline >> >> In [3]: plot([1, 2, 3]) >> >> plots in the QtConsole window. >> >> This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1. Note that I had some problems with the qtconsole when using the %pylab magic. It's possible the problems arose because I'm using the beta version of matplotlib 2. >> >> hth, >> Scott >> >>> On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: >>> >>> Hi all, >>> After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . >>> If I start >>> sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline >>> [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. >>> >>> I wont sart qtconsole. >>> If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py >>> If I go to any other directory it wont take the configuration file. >>> I have below line in the above ipython_config.py >>> c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' >>> >>> However none works for me to make pylab inline option. >>> Can any one throw some light in to this issue? >>> >>> sjo at SJOLTP../.jupyter~$ ls >>> ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup >>> ipython.desktop jupyter_nb.desktop migrated qtpy >>> sjo at SJOLTP../.jupyter~$ pwd >>> /home/sjo/.jupyter >>> sjo at SJOLTP../.jupyter~$ ls >>> ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup >>> ipython.desktop jupyter_nb.desktop migrated qtpy >>> sjo at SJOLTP../.jupyter~$ jupyter --version >>> 4.1.1 >>> sjo at SJOLTP../.jupyter~$ ipython --version >>> 5.0.0 >>> sjo at SJOLTP../.jupyter~$ >>> >>> >>> *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** >>> >>> >>> On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: >>> >>> >>> Thank you I got it fixed after following the link of bug report. >>> I have added >>> rcParams['figure.facecolor'] = 'w' >>> in 00_startup.py file in my ipython startup directory which fixed the issue >>> >>> *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** >>> >>> >>> >>> >>> On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: >>> >>> >>> >>> Thank you, >>> I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. >>> >>> Sudheer >>> Sent from Yahoo Mail for iPhone >>> >>> On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: >>> The relevant parameters are >>> >>> figure.facecolor >>> and >>> savefigure.facecolor >>> >>> but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running >>> I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 >>> >>> >>> best >>> Jens >>> >>> >>> On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: >>> Thank you Benjamin & Jens, >>> I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? >>> With best regards, >>> Sudheer >>> >>> >>> >>> >>> On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: >>> The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. >>> >>> https://mail.python.org/mailman/listinfo/matplotlib-users >>> >>> Ben Root >>> On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: >>> At least for me gmail put your mail in the spam folder. >>> >>> Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. >>> >>> You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. >>> >>> best >>> Jens >>> >>> On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: >>> Hi, >>> I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? >>> With best regards, >>> Sudheer >>> >>>> >>>> Dear Expert, >>>> Recently after up-gradation of matplotlib and ubuntu 16.04 I am >>>> getting transparent figure axis when using the "linux color scheme" >>>> option in ipython qtconsole. May I know if there is a way to fix this issue?. I >>>> wanted to keep black screen as it reduces eye strain. >>>> >>>> ipython qtconsole --matplotlib inline >>>> >>>> If I save the image i am able to get axis properly but to see on screen as the >>>> axis is not plotted with white background the black axis line and labels are not >>>> visible. Earlier I used to get figures as attached in second figure. >>>> Earlier Satus which I am looking for below link >>>> https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk >>>> Present status without boarder below link >>>> >>>> >>>> https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg >>>> >>>> Kindly suggest a solution >>>> with best regards, >>>> Sudheer >>>> >>> >>> ------------------------------ ------------------------------ ------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning reports. http://sdm.link/zohodev2dev >>> ______________________________ _________________ >>> Matplotlib-users mailing list >>> >>> Matplotlib-users at lists. sourceforge.net >>> https://lists.sourceforge.net/ lists/listinfo/matplotlib- users >>> >>> >>> ------------------------------ ------------------------------ ------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning reports. http://sdm.link/zohodev2dev >>> ______________________________ _________________ >>> Matplotlib-users mailing list >>> Matplotlib-users at lists. sourceforge.net >>> https://lists.sourceforge.net/ lists/listinfo/matplotlib- users >>> >>> >>> _______________________________________________ >>> 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 >> >> > > _______________________________________________ > 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 sudheer.joseph at yahoo.com Sat Aug 13 23:58:43 2016 From: sudheer.joseph at yahoo.com (Sudheer Joseph) Date: Sun, 14 Aug 2016 03:58:43 +0000 (UTC) Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <1321E0CB-8B9F-45D8-934C-FD28D6EAF8F4@icloud.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> <703791605.12336194.1471144736220.JavaMail.yahoo@mail.yahoo.com> <1321E0CB-8B9F-45D8-934C-FD28D6EAF8F4@icloud.com> Message-ID: <1346583602.12708199.1471147123082.JavaMail.yahoo@mail.yahoo.com> Thank you,but no mercy from Ipyton.With best regards,Sudheersjo at SJOLTP../startup~$ ls -lrttotal 12-rw-r--r-- 1 sjo sjo 371 Aug 13 21:20 README-rw-rw-r-- 1 sjo sjo 156 Aug 14 07:56 XX00-path_set.py-rw-rw-r-- 1 sjo sjo 136 Aug 14 08:10 00-path_set.ipy ?*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** From: Scott Lasley To: Sudheer Joseph Cc: "matplotlib-users at python.org" Sent: Sunday, 14 August 2016 9:05 AM Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy Try changing the name of the file 00-path_set.py to 00-path_set.ipy to indicate that it is an ipython file.? That makes a difference on my system. hth, Scott > On Aug 13, 2016, at 23:18, Sudheer Joseph wrote: > > Thank you, >? ? ? ? ? ? ? ? ? I am facing a problem that edges are becoming transparent after fixing the inline issue. with ipython it was possible to? fix this issue by configuring startup files as below. But jupyter seems not taking startup files > With best regards. > Sudheer > > /home/sjo/.ipython/profile_default/startup > sjo at SJOLTP../startup~$ ls > 00-path_set.py? README? XX00-path_set.py > sjo at SJOLTP../startup~$ cat 00-path_set.py > import sys > import matplotlib as mpl > mpl.rcParams['figure.facecolor'] = 'w' > mypath="/home/sjo/PKGS/SJO_PY_CODES" > sys.path.append(mypath) > > >? > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > From: Scott Lasley > To: Sudheer Joseph > Cc: "matplotlib-users at python.org" > Sent: Sunday, 14 August 2016 8:36 AM > Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy > > It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory.? It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac.? Here's how I was able to get jupyter qtconsole to launch with %pylab inline > > Create the default ipython profile files.? I think this will overwrite any old default profile files so make a backup if you want to keep the old files > $ ipython3 profile create > Find the location of your default profile > $ export myipython=$(ipython3 locate profile) > Edit the ipython_config.py file in your default profile directory > $ pico "$myipython"/ipython_config.py > Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' > > If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports.? See the "$myipython"/startup/README file for more info > > Here's the docs on configuring recent versions of ipython > http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory > > Best regards, > Scott > > > On Aug 13, 2016, at 20:34, Sudheer Joseph wrote: > > > > Thank you for the reply, > > Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal > > > > > > with best regards, > > Suhdheer > > On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: > > > > > > If I launch jupyter with the --pylab flag it exits with this message > > $ jupyter qtconsole --pylab > > ... > > [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: > > [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' > > > > Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? > > > > $ jupyter qtconsole > > (then in the QtConsole window enter) > > In [1]: %pylab > > Using matplotlib backend: MacOSX > > Populating the interactive namespace from numpy and matplotlib > > > > In [2]: %matplotlib inline > > > > In [3]: plot([1, 2, 3]) > > > > plots in the QtConsole window. > > > > This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1.? Note that I had some problems with the qtconsole when using the %pylab magic.? It's possible the problems arose because I'm using the beta version of matplotlib 2. > > > > hth, > > Scott > > > > > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > > > > > Hi all, > > >? ? ? ? ? ? ? ? After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > > > If I start > > > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > > > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > > > > > I wont sart qtconsole. > > > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > > > If I go to any other directory it wont take the configuration file. > > > I have below line in the above ipython_config.py > > > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > > > > > However none works for me to make pylab inline option. > > > Can any one throw some light in to this issue? > > > > > > sjo at SJOLTP../.jupyter~$ ls > > > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > > > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > > > sjo at SJOLTP../.jupyter~$ pwd > > > /home/sjo/.jupyter > > > sjo at SJOLTP../.jupyter~$ ls > > > ipython_config.py? jupyter.desktop? ? jupyter_qtconsole_config.py? pynb? startup > > > ipython.desktop? ? jupyter_nb.desktop? migrated? ? ? ? ? ? ? ? ? ? qtpy > > > sjo at SJOLTP../.jupyter~$ jupyter --version > > > 4.1.1 > > > sjo at SJOLTP../.jupyter~$ ipython --version > > > 5.0.0 > > > sjo at SJOLTP../.jupyter~$ > > > > > >? > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > > > > > > > Thank you I got it fixed after following the link of bug report. > > > I have added > > > rcParams['figure.facecolor'] = 'w' > > > in 00_startup.py file in my ipython startup directory which fixed the issue > > >? > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > > > > > > > > > Thank you, > > > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > > > > > Sudheer > > > Sent from Yahoo Mail for iPhone > > > > > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > > > The relevant parameters are > > > > > > figure.facecolor > > > and > > > savefigure.facecolor > > > > > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > > > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > > > > > > > best > > > Jens > > > > > > > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > > > Thank you Benjamin & Jens, > > >? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > > > With best regards, > > > Sudheer > > > > > > > > > > > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > > > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > > > > > https://mail.python.org/mailman/listinfo/matplotlib-users > > > > > > Ben Root > > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > > > At least for me gmail put your mail in the spam folder. > > > > > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running.? > > > > > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > > > > > best > > > Jens > > > > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > > > Hi, > > > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > > > With best regards, > > > Sudheer > > > > > > > > > > > Dear Expert, > > > >? ? ? ? ? ? ? ? Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > > > getting transparent figure axis when using the "linux color scheme" > > > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > > > wanted to keep black screen as it reduces eye strain. > > > > > > > > ipython qtconsole --matplotlib inline > > > > > > > > If I save the image i am able to get axis properly but to see on screen as the > > > > axis is not plotted with white background the black axis line and labels are not > > > > visible. Earlier I used to get figures as attached in second figure. > > > > Earlier Satus which I am looking for below link > > > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > > > Present status without boarder below link > > > > > > > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > > > > > Kindly suggest a solution > > > > with best regards, > > > > Sudheer > > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > planning reports. http://sdm.link/zohodev2dev > > > ______________________________ _________________ > > > Matplotlib-users mailing list > > > > > > Matplotlib-users at lists. sourceforge.net > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > planning reports. http://sdm.link/zohodev2dev > > > ______________________________ _________________ > > > Matplotlib-users mailing list > > > Matplotlib-users at lists. sourceforge.net > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > _______________________________________________ > > > 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 selasley at icloud.com Sat Aug 13 23:35:49 2016 From: selasley at icloud.com (Scott Lasley) Date: Sat, 13 Aug 2016 23:35:49 -0400 Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <703791605.12336194.1471144736220.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> <703791605.12336194.1471144736220.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1321E0CB-8B9F-45D8-934C-FD28D6EAF8F4@icloud.com> Try changing the name of the file 00-path_set.py to 00-path_set.ipy to indicate that it is an ipython file. That makes a difference on my system. hth, Scott > On Aug 13, 2016, at 23:18, Sudheer Joseph wrote: > > Thank you, > I am facing a problem that edges are becoming transparent after fixing the inline issue. with ipython it was possible to fix this issue by configuring startup files as below. But jupyter seems not taking startup files > With best regards. > Sudheer > > /home/sjo/.ipython/profile_default/startup > sjo at SJOLTP../startup~$ ls > 00-path_set.py README XX00-path_set.py > sjo at SJOLTP../startup~$ cat 00-path_set.py > import sys > import matplotlib as mpl > mpl.rcParams['figure.facecolor'] = 'w' > mypath="/home/sjo/PKGS/SJO_PY_CODES" > sys.path.append(mypath) > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > From: Scott Lasley > To: Sudheer Joseph > Cc: "matplotlib-users at python.org" > Sent: Sunday, 14 August 2016 8:36 AM > Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy > > It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory. It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac. Here's how I was able to get jupyter qtconsole to launch with %pylab inline > > Create the default ipython profile files. I think this will overwrite any old default profile files so make a backup if you want to keep the old files > $ ipython3 profile create > Find the location of your default profile > $ export myipython=$(ipython3 locate profile) > Edit the ipython_config.py file in your default profile directory > $ pico "$myipython"/ipython_config.py > Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' > > If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports. See the "$myipython"/startup/README file for more info > > Here's the docs on configuring recent versions of ipython > http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory > > Best regards, > Scott > > > On Aug 13, 2016, at 20:34, Sudheer Joseph wrote: > > > > Thank you for the reply, > > Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal > > > > > > with best regards, > > Suhdheer > > On Sunday, 14 August 2016 4:48 AM, Scott Lasley wrote: > > > > > > If I launch jupyter with the --pylab flag it exits with this message > > $ jupyter qtconsole --pylab > > ... > > [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: > > [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' > > > > Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? > > > > $ jupyter qtconsole > > (then in the QtConsole window enter) > > In [1]: %pylab > > Using matplotlib backend: MacOSX > > Populating the interactive namespace from numpy and matplotlib > > > > In [2]: %matplotlib inline > > > > In [3]: plot([1, 2, 3]) > > > > plots in the QtConsole window. > > > > This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1. Note that I had some problems with the qtconsole when using the %pylab magic. It's possible the problems arose because I'm using the beta version of matplotlib 2. > > > > hth, > > Scott > > > > > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users wrote: > > > > > > Hi all, > > > After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > > > If I start > > > sjo at SJOLTP../.jupyter~$ ipython qtconsole --pylab inline > > > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > > > > > I wont sart qtconsole. > > > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > > > If I go to any other directory it wont take the configuration file. > > > I have below line in the above ipython_config.py > > > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > > > > > However none works for me to make pylab inline option. > > > Can any one throw some light in to this issue? > > > > > > sjo at SJOLTP../.jupyter~$ ls > > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > > ipython.desktop jupyter_nb.desktop migrated qtpy > > > sjo at SJOLTP../.jupyter~$ pwd > > > /home/sjo/.jupyter > > > sjo at SJOLTP../.jupyter~$ ls > > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > > ipython.desktop jupyter_nb.desktop migrated qtpy > > > sjo at SJOLTP../.jupyter~$ jupyter --version > > > 4.1.1 > > > sjo at SJOLTP../.jupyter~$ ipython --version > > > 5.0.0 > > > sjo at SJOLTP../.jupyter~$ > > > > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph wrote: > > > > > > > > > Thank you I got it fixed after following the link of bug report. > > > I have added > > > rcParams['figure.facecolor'] = 'w' > > > in 00_startup.py file in my ipython startup directory which fixed the issue > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users wrote: > > > > > > > > > > > > Thank you, > > > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > > > > > Sudheer > > > Sent from Yahoo Mail for iPhone > > > > > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen wrote: > > > The relevant parameters are > > > > > > figure.facecolor > > > and > > > savefigure.facecolor > > > > > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > > > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > > > > > > > best > > > Jens > > > > > > > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph wrote: > > > Thank you Benjamin & Jens, > > > I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > > > With best regards, > > > Sudheer > > > > > > > > > > > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root wrote: > > > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > > > > > https://mail.python.org/mailman/listinfo/matplotlib-users > > > > > > Ben Root > > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen wrote: > > > At least for me gmail put your mail in the spam folder. > > > > > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. > > > > > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > > > > > best > > > Jens > > > > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph wrote: > > > Hi, > > > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > > > With best regards, > > > Sudheer > > > > > > > > > > > Dear Expert, > > > > Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > > > getting transparent figure axis when using the "linux color scheme" > > > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > > > wanted to keep black screen as it reduces eye strain. > > > > > > > > ipython qtconsole --matplotlib inline > > > > > > > > If I save the image i am able to get axis properly but to see on screen as the > > > > axis is not plotted with white background the black axis line and labels are not > > > > visible. Earlier I used to get figures as attached in second figure. > > > > Earlier Satus which I am looking for below link > > > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > > > Present status without boarder below link > > > > > > > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > > > > > Kindly suggest a solution > > > > with best regards, > > > > Sudheer > > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > planning reports. http://sdm.link/zohodev2dev > > > ______________________________ _________________ > > > Matplotlib-users mailing list > > > > > > Matplotlib-users at lists. sourceforge.net > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > planning reports. http://sdm.link/zohodev2dev > > > ______________________________ _________________ > > > Matplotlib-users mailing list > > > Matplotlib-users at lists. sourceforge.net > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > From winash12 at gmail.com Tue Aug 16 23:02:34 2016 From: winash12 at gmail.com (ashwinD12 .) Date: Wed, 17 Aug 2016 08:32:34 +0530 Subject: [Matplotlib-users] matplotlib runtime errors after installing Ubuntu 16.04 Message-ID: Hello, I have matplotlib installed via sudo apt-get install on Ubuntu 16.04 and when I run my old scripts(developed on Ubuntu 14.04) I get this run time error . I do have basemap installed as well as pyproj using sudo apt-get. Traceback (most recent call last):File "contour.py", line 30, in x,y = m(lons,lats)File "/usr/lib/python3/dist-packages/mpl_toolkits/basemap/__init__.py", line 1148, in __call__ xout,yout = self.projtran(x,y,inverse=inverse)sys.exit() File "/usr/lib/python3/dist-packages/mpl_toolkits/basemap/proj.py", line 286, in __call__ outx,outy = self._proj4(x, y, inverse=inverse) File "/usr/lib/python3/dist-packages/mpl_toolkits/basemap/pyproj.py", line 392, in __call__ _proj.Proj._fwd(self, inx, iny, radians=radians, errcheck=errcheck) File "_proj.pyx", line 122, in _proj.Proj._fwd (src/_proj.c:1571) SystemError: returned a result with an error set This is the code I am running nc_f = './hgt_500_2014_12_5_00Z.nc' nc_fid = Dataset(nc_f, 'r') # and create an instance of the ncCDF4 class lats = nc_fid.variables['lat'][:] # extract/copy the data lons = nc_fid.variables['lon'][:] time = nc_fid.variables['time'][:] hgt = nc_fid.variables['hgt'][:] m = Basemap(width=5000000,height=3500000, resolution='l',projection='stere', lat_0 = 0, lon_0 = 0, lat_ts = 40) lons,lats = np.meshgrid(lons, lats,copy=False) x,y = m(lons,lats) <----- CODE FAILS HERE m.drawcoastlines() m.drawcountries() Any thoughts ? Regards, Ashwin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeuii at posteo.de Wed Aug 17 05:01:42 2016 From: aeuii at posteo.de (aeuii at posteo.de) Date: Wed, 17 Aug 2016 11:01:42 +0200 Subject: [Matplotlib-users] detect axes belonging to a colorbar Message-ID: <8637m34vm1.fsf@example.com> Hi, I would like to iterate over fig.axes and apply some changes to regular axes and skip those belonging to colorbars. What's the best way (having only fig object) to detect if an axis belongs to a colorbar or not? Thanks for an advice. Best regards, Stefan From kenneth.hoste at ugent.be Thu Aug 18 03:42:07 2016 From: kenneth.hoste at ugent.be (Kenneth Hoste) Date: Thu, 18 Aug 2016 09:42:07 +0200 Subject: [Matplotlib-users] matploblib 1.5.2 release tagged on GitHub but not on PyPI Message-ID: <88949dc3-6347-2956-b1fc-7646b4194296@ugent.be> Hi all, I noticed that even though matplotlib 1.5.2 has been tagged on GitHub [1], it has not been released on PyPI where the latest available (stable) version is still 1.5.1. As far as I can tell, there hasn't been a release announcement for version 1.5.2 either. Does anyone know why this is the case? regards, Kenneth [1] https://github.com/matplotlib/matplotlib/releases/tag/v1.5.2 [2] https://pypi.python.org/pypi/matplotlib/1.5.1 (no https://pypi.python.org/pypi/matplotlib/1.5.2) From ben.v.root at gmail.com Thu Aug 18 09:09:00 2016 From: ben.v.root at gmail.com (Benjamin Root) Date: Thu, 18 Aug 2016 09:09:00 -0400 Subject: [Matplotlib-users] matploblib 1.5.2 release tagged on GitHub but not on PyPI In-Reply-To: <88949dc3-6347-2956-b1fc-7646b4194296@ugent.be> References: <88949dc3-6347-2956-b1fc-7646b4194296@ugent.be> Message-ID: There was a last-minute set of critical bug reports that came in right when Thomas were cutting the release, so he halted. He will release v1.5.3 when he finds the time to do so. Sorry for the confusion. Cheers! Ben Root On Thu, Aug 18, 2016 at 3:42 AM, Kenneth Hoste wrote: > Hi all, > > I noticed that even though matplotlib 1.5.2 has been tagged on GitHub [1], > it has not been released on PyPI where the latest available (stable) > version is still 1.5.1. > > As far as I can tell, there hasn't been a release announcement for version > 1.5.2 either. > > Does anyone know why this is the case? > > > regards, > > Kenneth > > [1] https://github.com/matplotlib/matplotlib/releases/tag/v1.5.2 > [2] https://pypi.python.org/pypi/matplotlib/1.5.1 (no > https://pypi.python.org/pypi/matplotlib/1.5.2) > _______________________________________________ > 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 juhaszp95 at gmail.com Fri Aug 19 06:10:02 2016 From: juhaszp95 at gmail.com (juhaszp95 at gmail.com) Date: Fri, 19 Aug 2016 12:10:02 +0200 Subject: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array Message-ID: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> Dear Matplotlib users, I am P?ter Juh?sz and I started experimenting with this demo: http://matplotlib.org/examples/pylab_examples/subplots_demo.html. What I then tried to achieve is to let y be a NumPy array of 2 rows, the first holding sin(x**2) values, the second holding something else (I set cos(x**2)), and the make the same plots as in the original demo only by using the first row of y. Unfortunately, I was quite surprised to see that pyplot/matplotlib only succeeds with this plotting if scatter plots or markers are used only, instead of the usual plotting with lines. On the other hand, with some tricks in the NumPy array (some reshapes and slicing) I was able to make pyplot/matplotlib work for both scatter plots and the usual simple plots. This however possibly takes much more time, so for big datasets does not seem feasible and anyway I do not see an obvious reason why a dataset should only work with scatter plots but not the usual, simple plots. Please find attached my code below and I would appreciate any help/explanation, or it is indeed a bug, then if it could be raised to the developers' attention. My original trial, working only with scatter plots (see for yourself! maybe it's only my installation what is going wrong?): import matplotlib.pyplot as plt import numpy as np # Simple data to display in various forms x = np.linspace(0, 2 * np.pi, 400).reshape(1, 400) print(x.shape) y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))) print(y[:1].shape) plt.close('all') # Three subplots sharing both x/y axes f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) ax1.plot(x, y[:1]) # This is not showing! ax1.set_title('Sharing both axes') ax2.scatter(x, y[:1]) ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') # Fine-tune figure; make subplots close to each other and hide x ticks for # all but bottom plot. f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) # row and column sharing f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') ax1.plot(x, y[:1]) # This is not showing! ax1.set_title('Sharing x per column, y per row') ax2.scatter(x, y[:1]) ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') ax4.plot(x, 2 * y[:1] ** 2 - 1, color='r') # This is not showing! plt.show() The working solution: import matplotlib.pyplot as plt import numpy as np # Simple data to display in various forms x = np.linspace(0, 2 * np.pi, 400).reshape(400, 1) print(x.shape) y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))).reshape(400, 2) print(y[:, 0].shape) plt.close('all') # Three subplots sharing both x/y axes f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) ax1.plot(x, y[:, 0]) ax1.set_title('Sharing both axes') ax2.scatter(x, y[:, 0]) ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') # Fine-tune figure; make subplots close to each other and hide x ticks for # all but bottom plot. f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) # row and column sharing f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') ax1.plot(x, y[:, 0]) ax1.set_title('Sharing x per column, y per row') ax2.scatter(x, y[:, 0]) ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') ax4.plot(x, 2 * y[:, 0] ** 2 - 1, color='r') plt.show() I did not modify anything else in the code respective to the original demo than what I mentioned. I hope you will be able to help. Kind regards, P?ter -------------- next part -------------- An HTML attachment was scrubbed... URL: From jenshnielsen at gmail.com Fri Aug 19 06:31:49 2016 From: jenshnielsen at gmail.com (Jens Nielsen) Date: Fri, 19 Aug 2016 10:31:49 +0000 Subject: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array In-Reply-To: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> References: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> Message-ID: The problem is the way you are slicing your data by doing y[:1] you are creating a 1 by 400 array. When you try to plot that you will get 400 individual line plots each with only one point. A line plot with one point is invisible since there in no other points to draw the lines between. You will not notice that with scatter since it defaults to drawing a point for each data point. If you add a marker you can see whats going on. I.e. do ax1.plot(x, y[:1], 'o') in the first example and you will notice that the points color cycle as a new plot is created. If you really want to slice this way you have to ensure that your data is along the first dimension. I.e. you can do `ax1.plot(x.transpose(), y[:1].transpose())` which plots 400 by 1 arrays Hope that helps Jens On Fri, 19 Aug 2016 at 11:10 wrote: > Dear Matplotlib users, > > > > I am P?ter Juh?sz and I started experimenting with this demo: > http://matplotlib.org/examples/pylab_examples/subplots_demo.html. > > > > What I then tried to achieve is to let *y* be a NumPy array of 2 rows, > the first holding sin(x**2) values, the second holding something else (I > set cos(x**2)), and the make the same plots as in the original demo only by > using the first row of *y*. Unfortunately, I was quite surprised to see > that pyplot/matplotlib only succeeds with this plotting if *scatter plots* > or *markers* are used *only*, instead of the usual plotting with lines. > On the other hand, with some tricks in the NumPy array (some reshapes and > slicing) I was able to make pyplot/matplotlib work for both scatter plots > and the usual simple plots. This however possibly takes much more time, so > for big datasets does not seem feasible and anyway I do not see an obvious > reason why a dataset should only work with scatter plots but not the usual, > simple plots. > > > > Please find attached my code below and I would appreciate any > help/explanation, or it is indeed a bug, then if it could be raised to the > developers? attention. > > > > My original trial, working only with scatter plots (see for yourself! > maybe it?s only my installation what is going wrong?): > > > > import matplotlib.pyplot as plt > > import numpy as np > > > > # Simple data to display in various forms > > x = np.linspace(0, 2 * np.pi, 400).reshape(1, 400) > > print(x.shape) > > y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))) > > print(y[:1].shape) > > > > plt.close(*'all'*) > > > > # Three *subplots* sharing both x/y axes > > f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) > > ax1.plot(x, y[:1]) # This is not showing! > > ax1.set_title(*'Sharing both axes'*) > > ax2.scatter(x, y[:1]) > > ax3.scatter(x, 2 * y[:1] ** 2 - 1, color=*'r'*) > > # Fine-tune figure; make *subplots* close to each other and hide x ticks > for > > # all but bottom plot. > > f.subplots_adjust(hspace=0) > > plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) > > > > # row and column sharing > > f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex=*'col'*, sharey= > *'row'*) > > ax1.plot(x, y[:1]) # This is not showing! > > ax1.set_title(*'Sharing x per column, y per row'*) > > ax2.scatter(x, y[:1]) > > ax3.scatter(x, 2 * y[:1] ** 2 - 1, color=*'r'*) > > ax4.plot(x, 2 * y[:1] ** 2 - 1, color=*'r'*) # This is not showing! > > > > plt.show() > > > > > > The working solution: > > > > import matplotlib.pyplot as plt > > import numpy as np > > > > # Simple data to display in various forms > > x = np.linspace(0, 2 * np.pi, 400).reshape(400, 1) > > print(x.shape) > > y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))).reshape(400, 2) > > print(y[:, 0].shape) > > > > plt.close(*'all'*) > > > > # Three *subplots* sharing both x/y axes > > f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) > > ax1.plot(x, y[:, 0]) > > ax1.set_title(*'Sharing both axes'*) > > ax2.scatter(x, y[:, 0]) > > ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > > # Fine-tune figure; make *subplots* close to each other and hide x ticks > for > > # all but bottom plot. > > f.subplots_adjust(hspace=0) > > plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) > > > > # row and column sharing > > f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex=*'col'*, sharey= > *'row'*) > > ax1.plot(x, y[:, 0]) > > ax1.set_title(*'Sharing x per column, y per row'*) > > ax2.scatter(x, y[:, 0]) > > ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > > ax4.plot(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > > > > plt.show() > > > > I did not modify anything else in the code respective to the original demo > than what I mentioned. I hope you will be able to help. > > > > Kind regards, > > P?ter > _______________________________________________ > 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 juhaszp95 at gmail.com Fri Aug 19 07:31:11 2016 From: juhaszp95 at gmail.com (juhaszp95 at gmail.com) Date: Fri, 19 Aug 2016 13:31:11 +0200 Subject: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array In-Reply-To: References: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> Message-ID: <000001d1fa0d$303f2ae0$90bd80a0$@gmail.com> Hi Jens, Thanks very much! This indeed works. I thought PyPlot automatically detects if the data is along which axes, but fair, expecting it in a certain way is more consistent. Many thanks for your help once again! Best wishes, P?ter From: Jens Nielsen [mailto:jenshnielsen at gmail.com] Sent: Friday, August 19, 2016 12:32 PM To: juhaszp95 at gmail.com; matplotlib-users at python.org Subject: Re: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array The problem is the way you are slicing your data by doing y[:1] you are creating a 1 by 400 array. When you try to plot that you will get 400 individual line plots each with only one point. A line plot with one point is invisible since there in no other points to draw the lines between. You will not notice that with scatter since it defaults to drawing a point for each data point. If you add a marker you can see whats going on. I.e. do ax1.plot(x, y[:1], 'o') in the first example and you will notice that the points color cycle as a new plot is created. If you really want to slice this way you have to ensure that your data is along the first dimension. I.e. you can do `ax1.plot(x.transpose(), y[:1].transpose())` which plots 400 by 1 arrays Hope that helps Jens On Fri, 19 Aug 2016 at 11:10 > wrote: Dear Matplotlib users, I am P?ter Juh?sz and I started experimenting with this demo: http://matplotlib.org/examples/pylab_examples/subplots_demo.html. What I then tried to achieve is to let y be a NumPy array of 2 rows, the first holding sin(x**2) values, the second holding something else (I set cos(x**2)), and the make the same plots as in the original demo only by using the first row of y. Unfortunately, I was quite surprised to see that pyplot/matplotlib only succeeds with this plotting if scatter plots or markers are used only, instead of the usual plotting with lines. On the other hand, with some tricks in the NumPy array (some reshapes and slicing) I was able to make pyplot/matplotlib work for both scatter plots and the usual simple plots. This however possibly takes much more time, so for big datasets does not seem feasible and anyway I do not see an obvious reason why a dataset should only work with scatter plots but not the usual, simple plots. Please find attached my code below and I would appreciate any help/explanation, or it is indeed a bug, then if it could be raised to the developers? attention. My original trial, working only with scatter plots (see for yourself! maybe it?s only my installation what is going wrong?): import matplotlib.pyplot as plt import numpy as np # Simple data to display in various forms x = np.linspace(0, 2 * np.pi, 400).reshape(1, 400) print(x.shape) y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))) print(y[:1].shape) plt.close('all') # Three subplots sharing both x/y axes f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) ax1.plot(x, y[:1]) # This is not showing! ax1.set_title('Sharing both axes') ax2.scatter(x, y[:1]) ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') # Fine-tune figure; make subplots close to each other and hide x ticks for # all but bottom plot. f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) # row and column sharing f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') ax1.plot(x, y[:1]) # This is not showing! ax1.set_title('Sharing x per column, y per row') ax2.scatter(x, y[:1]) ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') ax4.plot(x, 2 * y[:1] ** 2 - 1, color='r') # This is not showing! plt.show() The working solution: import matplotlib.pyplot as plt import numpy as np # Simple data to display in various forms x = np.linspace(0, 2 * np.pi, 400).reshape(400, 1) print(x.shape) y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))).reshape(400, 2) print(y[:, 0].shape) plt.close('all') # Three subplots sharing both x/y axes f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) ax1.plot(x, y[:, 0]) ax1.set_title('Sharing both axes') ax2.scatter(x, y[:, 0]) ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') # Fine-tune figure; make subplots close to each other and hide x ticks for # all but bottom plot. f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) # row and column sharing f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') ax1.plot(x, y[:, 0]) ax1.set_title('Sharing x per column, y per row') ax2.scatter(x, y[:, 0]) ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') ax4.plot(x, 2 * y[:, 0] ** 2 - 1, color='r') plt.show() I did not modify anything else in the code respective to the original demo than what I mentioned. I hope you will be able to help. Kind regards, P?ter _______________________________________________ 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 ben.v.root at gmail.com Fri Aug 19 10:26:26 2016 From: ben.v.root at gmail.com (Benjamin Root) Date: Fri, 19 Aug 2016 10:26:26 -0400 Subject: [Matplotlib-users] detect axes belonging to a colorbar In-Reply-To: <8637m34vm1.fsf@example.com> References: <8637m34vm1.fsf@example.com> Message-ID: No, I don't think there is a way, really. From the perspective of the figure object, the colorbar looks just like another axes object. There might be a trick that might work in some cases, but they would be highly fragile. It would be better to just capture the colorbar object directly, somehow. Ben Root On Wed, Aug 17, 2016 at 5:01 AM, wrote: > Hi, > > I would like to iterate over fig.axes and apply some changes to regular > axes and skip those belonging to colorbars. > > What's the best way (having only fig object) to detect if an axis > belongs to a colorbar or not? > > Thanks for an advice. > > Best regards, > Stefan > > _______________________________________________ > 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 dipugee at gmail.com Fri Aug 19 10:58:14 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Fri, 19 Aug 2016 07:58:14 -0700 Subject: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array In-Reply-To: <000001d1fa0d$303f2ae0$90bd80a0$@gmail.com> References: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> <000001d1fa0d$303f2ae0$90bd80a0$@gmail.com> Message-ID: Hi: I am trying to learn the basics of plotting in matplotlib. My immediate need is for displaying grayscale images with titles, axis labels & ticks and within-image annotations. Where can I get good tutorials/demos for such things? Thanks. Dipu Dipankar ?Dipu? Ganguly dipugee at gmail.com Cell: 408-203-8814 > On Aug 19, 2016, at 4:31 AM, wrote: > > Hi Jens, > > Thanks very much! This indeed works. I thought PyPlot automatically detects if the data is along which axes, but fair, expecting it in a certain way is more consistent. > > Many thanks for your help once again! > > Best wishes, > P?ter > ? <> > From: Jens Nielsen [mailto:jenshnielsen at gmail.com ] > Sent: Friday, August 19, 2016 12:32 PM > To: juhaszp95 at gmail.com ; matplotlib-users at python.org > Subject: Re: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array > > The problem is the way you are slicing your data > > by doing y[:1] you are creating a 1 by 400 array. When you try to plot that you will get 400 individual line plots each with only one point. A line plot with one point is invisible since there in no other points to draw the lines between. You will not notice that with scatter since it defaults to drawing a point for each data point. If you add a marker you can see whats going on. > I.e. do > ax1.plot(x, y[:1], 'o') > in the first example and you will notice that the points color cycle as a new plot is created. > > If you really want to slice this way you have to ensure that your data is along the first dimension. I.e. you can do `ax1.plot(x.transpose(), y[:1].transpose())` which plots 400 by 1 arrays > > Hope that helps > Jens > > > > On Fri, 19 Aug 2016 at 11:10 > wrote: >> Dear Matplotlib users, >> >> I am P?ter Juh?sz and I started experimenting with this demo: http://matplotlib.org/examples/pylab_examples/subplots_demo.html . >> >> What I then tried to achieve is to let y be a NumPy array of 2 rows, the first holding sin(x**2) values, the second holding something else (I set cos(x**2)), and the make the same plots as in the original demo only by using the first row of y. Unfortunately, I was quite surprised to see that pyplot/matplotlib only succeeds with this plotting if scatter plots or markers are used only, instead of the usual plotting with lines. On the other hand, with some tricks in the NumPy array (some reshapes and slicing) I was able to make pyplot/matplotlib work for both scatter plots and the usual simple plots. This however possibly takes much more time, so for big datasets does not seem feasible and anyway I do not see an obvious reason why a dataset should only work with scatter plots but not the usual, simple plots. >> >> Please find attached my code below and I would appreciate any help/explanation, or it is indeed a bug, then if it could be raised to the developers? attention. >> >> My original trial, working only with scatter plots (see for yourself! maybe it?s only my installation what is going wrong?): >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> # Simple data to display in various forms >> x = np.linspace(0, 2 * np.pi, 400).reshape(1, 400) >> print(x.shape) >> y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))) >> print(y[:1].shape) >> >> plt.close('all') >> >> # Three subplots sharing both x/y axes >> f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) >> ax1.plot(x, y[:1]) # This is not showing! >> ax1.set_title('Sharing both axes') >> ax2.scatter(x, y[:1]) >> ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') >> # Fine-tune figure; make subplots close to each other and hide x ticks for >> # all but bottom plot. >> f.subplots_adjust(hspace=0) >> plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) >> >> # row and column sharing >> f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') >> ax1.plot(x, y[:1]) # This is not showing! >> ax1.set_title('Sharing x per column, y per row') >> ax2.scatter(x, y[:1]) >> ax3.scatter(x, 2 * y[:1] ** 2 - 1, color='r') >> ax4.plot(x, 2 * y[:1] ** 2 - 1, color='r') # This is not showing! >> >> plt.show() >> >> >> The working solution: >> >> import matplotlib.pyplot as plt >> import numpy as np >> >> # Simple data to display in various forms >> x = np.linspace(0, 2 * np.pi, 400).reshape(400, 1) >> print(x.shape) >> y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))).reshape(400, 2) >> print(y[:, 0].shape) >> >> plt.close('all') >> >> # Three subplots sharing both x/y axes >> f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) >> ax1.plot(x, y[:, 0]) >> ax1.set_title('Sharing both axes') >> ax2.scatter(x, y[:, 0]) >> ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') >> # Fine-tune figure; make subplots close to each other and hide x ticks for >> # all but bottom plot. >> f.subplots_adjust(hspace=0) >> plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) >> >> # row and column sharing >> f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row') >> ax1.plot(x, y[:, 0]) >> ax1.set_title('Sharing x per column, y per row') >> ax2.scatter(x, y[:, 0]) >> ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color='r') >> ax4.plot(x, 2 * y[:, 0] ** 2 - 1, color='r') >> >> plt.show() >> >> I did not modify anything else in the code respective to the original demo than what I mentioned. I hope you will be able to help. >> >> Kind regards, >> P?ter >> _______________________________________________ >> 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 pmhobson at gmail.com Fri Aug 19 11:12:50 2016 From: pmhobson at gmail.com (Paul Hobson) Date: Fri, 19 Aug 2016 08:12:50 -0700 Subject: [Matplotlib-users] [Question] Possible bug in plotting large NumPy array In-Reply-To: References: <001001d1fa01$da7b73d0$8f725b70$@gmail.com> <000001d1fa0d$303f2ae0$90bd80a0$@gmail.com> Message-ID: Dipu, http://matplotlib.org/ has both a gallery if images (click the image to see the source code) and a broad, organized list of examples. I'd start there. On Fri, Aug 19, 2016 at 7:58 AM, Dipankar ?Dipu? Ganguly wrote: > Hi: > > I am trying to learn the basics of plotting in matplotlib. My immediate > need is for displaying grayscale images with titles, axis labels & ticks > and within-image annotations. Where can I get good tutorials/demos for > such things? > > Thanks. > > Dipu > > > Dipankar ?Dipu? Ganguly > dipugee at gmail.com > Cell: 408-203-8814 > > > > > > > > On Aug 19, 2016, at 4:31 AM, > wrote: > > Hi Jens, > > Thanks very much! This indeed works. I thought PyPlot automatically > detects if the data is along which axes, but fair, expecting it in a > certain way is more consistent. > > Many thanks for your help once again! > > Best wishes, > P?ter > > *From:* Jens Nielsen [mailto:jenshnielsen at gmail.com > ] > *Sent:* Friday, August 19, 2016 12:32 PM > *To:* juhaszp95 at gmail.com; matplotlib-users at python.org > *Subject:* Re: [Matplotlib-users] [Question] Possible bug in plotting > large NumPy array > > The problem is the way you are slicing your data > > by doing y[:1] you are creating a 1 by 400 array. When you try to plot > that you will get 400 individual line plots each with only one point. A > line plot with one point is invisible since there in no other points to > draw the lines between. You will not notice that with scatter since it > defaults to drawing a point for each data point. If you add a marker you > can see whats going on. > I.e. do > ax1.plot(x, y[:1], 'o') > in the first example and you will notice that the points color cycle as a > new plot is created. > > If you really want to slice this way you have to ensure that your data is > along the first dimension. I.e. you can do `ax1.plot(x.transpose(), > y[:1].transpose())` which plots 400 by 1 arrays > > Hope that helps > Jens > > > > On Fri, 19 Aug 2016 at 11:10 wrote: > > Dear Matplotlib users, > > I am P?ter Juh?sz and I started experimenting with this demo: > http://matplotlib.org/examples/pylab_examples/subplots_demo.html. > > What I then tried to achieve is to let *y* be a NumPy array of 2 rows, > the first holding sin(x**2) values, the second holding something else (I > set cos(x**2)), and the make the same plots as in the original demo only by > using the first row of *y*. Unfortunately, I was quite surprised to see > that pyplot/matplotlib only succeeds with this plotting if *scatter plots* > or *markers* are used *only*, instead of the usual plotting with lines. > On the other hand, with some tricks in the NumPy array (some reshapes and > slicing) I was able to make pyplot/matplotlib work for both scatter plots > and the usual simple plots. This however possibly takes much more time, so > for big datasets does not seem feasible and anyway I do not see an obvious > reason why a dataset should only work with scatter plots but not the usual, > simple plots. > > Please find attached my code below and I would appreciate any > help/explanation, or it is indeed a bug, then if it could be raised to the > developers? attention. > > My original trial, working only with scatter plots (see for yourself! > maybe it?s only my installation what is going wrong?): > > import matplotlib.pyplot as plt > import numpy as np > > # Simple data to display in various forms > x = np.linspace(0, 2 * np.pi, 400).reshape(1, 400) > print(x.shape) > y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))) > print(y[:1].shape) > > plt.close(*'all'*) > > # Three *subplots* sharing both x/y axes > f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) > ax1.plot(x, y[:1]) # This is not showing! > ax1.set_title(*'Sharing both axes'*) > ax2.scatter(x, y[:1]) > ax3.scatter(x, 2 * y[:1] ** 2 - 1, color=*'r'*) > # Fine-tune figure; make *subplots* close to each other and hide x ticks > for > # all but bottom plot. > f.subplots_adjust(hspace=0) > plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) > > # row and column sharing > f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex=*'col'*, sharey= > *'row'*) > ax1.plot(x, y[:1]) # This is not showing! > ax1.set_title(*'Sharing x per column, y per row'*) > ax2.scatter(x, y[:1]) > ax3.scatter(x, 2 * y[:1] ** 2 - 1, color=*'r'*) > ax4.plot(x, 2 * y[:1] ** 2 - 1, color=*'r'*) # This is not showing! > > plt.show() > > > The working solution: > > import matplotlib.pyplot as plt > import numpy as np > > # Simple data to display in various forms > x = np.linspace(0, 2 * np.pi, 400).reshape(400, 1) > print(x.shape) > y = np.vstack((np.sin(x ** 2), np.cos(x ** 2))).reshape(400, 2) > print(y[:, 0].shape) > > plt.close(*'all'*) > > # Three *subplots* sharing both x/y axes > f, (ax1, ax2, ax3) = plt.subplots(3, sharex=True, sharey=True) > ax1.plot(x, y[:, 0]) > ax1.set_title(*'Sharing both axes'*) > ax2.scatter(x, y[:, 0]) > ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > # Fine-tune figure; make *subplots* close to each other and hide x ticks > for > # all but bottom plot. > f.subplots_adjust(hspace=0) > plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) > > # row and column sharing > f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex=*'col'*, sharey= > *'row'*) > ax1.plot(x, y[:, 0]) > ax1.set_title(*'Sharing x per column, y per row'*) > ax2.scatter(x, y[:, 0]) > ax3.scatter(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > ax4.plot(x, 2 * y[:, 0] ** 2 - 1, color=*'r'*) > > plt.show() > > I did not modify anything else in the code respective to the original demo > than what I mentioned. I hope you will be able to help. > > Kind regards, > P?ter > _______________________________________________ > 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 > > > > _______________________________________________ > 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 jfoxrabinovitz at gmail.com Fri Aug 19 12:58:14 2016 From: jfoxrabinovitz at gmail.com (Joseph Fox-Rabinovitz) Date: Fri, 19 Aug 2016 12:58:14 -0400 Subject: [Matplotlib-users] detect axes belonging to a colorbar In-Reply-To: References: <8637m34vm1.fsf@example.com> Message-ID: On a related note, I was thinking that doing something like `fig.findobj(mpl.colorbar.ColorbarBase)` would help you, but it raises an error instead: Traceback (most recent call last): File "", line 1, in File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/artist.py", line 975, in findobj if matchfunc(c): File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", line 307, in __init__ self.set_label(label) File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", line 459, in set_label self._set_label() File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", line 448, in _set_label self.ax.set_ylabel(self._label, **self._labelkw) AttributeError: 'Rectangle' object has no attribute 'set_ylabel' What is wrong about the way I am trying to use `findobj`? Here is the code I was testing with, for reference: import numpy as np import matplotlib as mpl from matplotlib import pyplot as plt x = np.arange(10) y = np.arange(10) X, Y = np.meshgrid(x, y) z = X * Y ax = plt.pcolor(X, Y, z) plt.colorbar() fig = ax.figure fig.findobj(mpl.colorbar.ColorbarBase) -Joe On Fri, Aug 19, 2016 at 10:26 AM, Benjamin Root wrote: > No, I don't think there is a way, really. From the perspective of the > figure object, the colorbar looks just like another axes object. There > might be a trick that might work in some cases, but they would be highly > fragile. It would be better to just capture the colorbar object directly, > somehow. > > Ben Root > > On Wed, Aug 17, 2016 at 5:01 AM, wrote: > >> Hi, >> >> I would like to iterate over fig.axes and apply some changes to regular >> axes and skip those belonging to colorbars. >> >> What's the best way (having only fig object) to detect if an axis >> belongs to a colorbar or not? >> >> Thanks for an advice. >> >> Best regards, >> Stefan >> >> _______________________________________________ >> 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 ben.v.root at gmail.com Fri Aug 19 13:04:00 2016 From: ben.v.root at gmail.com (Benjamin Root) Date: Fri, 19 Aug 2016 13:04:00 -0400 Subject: [Matplotlib-users] detect axes belonging to a colorbar In-Reply-To: References: <8637m34vm1.fsf@example.com> Message-ID: mpl.colorbar.ColorbarBase is not a subclass of Artist, so findobj() doesn't detect that you want to match against that object type. On Fri, Aug 19, 2016 at 12:58 PM, Joseph Fox-Rabinovitz < jfoxrabinovitz at gmail.com> wrote: > On a related note, I was thinking that doing something like > `fig.findobj(mpl.colorbar.ColorbarBase)` would help you, but it raises an > error instead: > > Traceback (most recent call last): > File "", line 1, in > File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/artist.py", > line 975, in findobj > if matchfunc(c): > File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", > line 307, in __init__ > self.set_label(label) > File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", > line 459, in set_label > self._set_label() > File "/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", > line 448, in _set_label > self.ax.set_ylabel(self._label, **self._labelkw) > AttributeError: 'Rectangle' object has no attribute 'set_ylabel' > > What is wrong about the way I am trying to use `findobj`? > > Here is the code I was testing with, for reference: > > import numpy as np > import matplotlib as mpl > from matplotlib import pyplot as plt > x = np.arange(10) > y = np.arange(10) > X, Y = np.meshgrid(x, y) > z = X * Y > ax = plt.pcolor(X, Y, z) > plt.colorbar() > fig = ax.figure > fig.findobj(mpl.colorbar.ColorbarBase) > > > > -Joe > > > On Fri, Aug 19, 2016 at 10:26 AM, Benjamin Root > wrote: > >> No, I don't think there is a way, really. From the perspective of the >> figure object, the colorbar looks just like another axes object. There >> might be a trick that might work in some cases, but they would be highly >> fragile. It would be better to just capture the colorbar object directly, >> somehow. >> >> Ben Root >> >> On Wed, Aug 17, 2016 at 5:01 AM, wrote: >> >>> Hi, >>> >>> I would like to iterate over fig.axes and apply some changes to regular >>> axes and skip those belonging to colorbars. >>> >>> What's the best way (having only fig object) to detect if an axis >>> belongs to a colorbar or not? >>> >>> Thanks for an advice. >>> >>> Best regards, >>> Stefan >>> >>> _______________________________________________ >>> 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 tcaswell at gmail.com Sat Aug 27 14:09:42 2016 From: tcaswell at gmail.com (Thomas Caswell) Date: Sat, 27 Aug 2016 18:09:42 +0000 Subject: [Matplotlib-users] mpl governance In-Reply-To: References: Message-ID: Folks, Following up on last month's email, are there any comments, for or against, adopting the Jupyter governance model and the mechanism of ratifying the adoption? Tom On Sun, Jul 31, 2016 at 6:32 PM Thomas Caswell wrote: > Folks, > > During the sprints at SciPy Mike Droettboom and I started to adapt the > Jupyter governance documents for matplotlib. > > We are doing this in the open, and a pull request of the changes is at: > > https://github.com/matplotlib/governance/pull/1 > > To be clear, this is a work in progress and is not final or in force. > > We propose the mechanism for ratifying the these documents is to, after > input from the community, have the current "matplotlib Executive Committee" > (the signers of the FSA with NUMFocus) vote. > > Tom > > ps A very similar email was sent to the matplotlib-devel list on July 17 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmhobson at gmail.com Mon Aug 29 11:39:53 2016 From: pmhobson at gmail.com (Paul Hobson) Date: Mon, 29 Aug 2016 08:39:53 -0700 Subject: [Matplotlib-users] mpl governance In-Reply-To: References: Message-ID: I think this is a good idea. On Sat, Aug 27, 2016 at 11:09 AM, Thomas Caswell wrote: > Folks, > > Following up on last month's email, are there any comments, for or > against, adopting the Jupyter governance model and the mechanism of > ratifying the adoption? > > Tom > > > On Sun, Jul 31, 2016 at 6:32 PM Thomas Caswell wrote: > >> Folks, >> >> During the sprints at SciPy Mike Droettboom and I started to adapt the >> Jupyter governance documents for matplotlib. >> >> We are doing this in the open, and a pull request of the changes is at: >> >> https://github.com/matplotlib/governance/pull/1 >> >> To be clear, this is a work in progress and is not final or in force. >> >> We propose the mechanism for ratifying the these documents is to, after >> input from the community, have the current "matplotlib Executive Committee" >> (the signers of the FSA with NUMFocus) vote. >> >> Tom >> >> ps A very similar email was sent to the matplotlib-devel list on July 17 >> > > _______________________________________________ > 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 dipugee at gmail.com Mon Aug 29 20:28:40 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Mon, 29 Aug 2016 17:28:40 -0700 Subject: [Matplotlib-users] mpl governance In-Reply-To: References: Message-ID: <01017D02-DAFA-4F61-B802-F22156758AD9@gmail.com> Hi: I have ImageJ installed on the same Mac that I am using to develop IPython Image Processing algorithms under Anaconda Navigator?s Jupyter. Can I load ImageJ as a package in my Image Processing environment and call its functions as I do with matplotlib? Thanks Dipu Dipankar ?Dipu? Ganguly dipugee at gmail.com Cell: 408-203-8814Dipankar ?Dipu? Ganguly dipugee at gmail.com Cell: 408-203-8814 > On Aug 29, 2016, at 8:39 AM, Paul Hobson wrote: > > I think this is a good idea. > > On Sat, Aug 27, 2016 at 11:09 AM, Thomas Caswell > wrote: > Folks, > > Following up on last month's email, are there any comments, for or against, adopting the Jupyter governance model and the mechanism of ratifying the adoption? > > Tom > > > On Sun, Jul 31, 2016 at 6:32 PM Thomas Caswell > wrote: > Folks, > > During the sprints at SciPy Mike Droettboom and I started to adapt the Jupyter governance documents for matplotlib. > > We are doing this in the open, and a pull request of the changes is at: > > https://github.com/matplotlib/governance/pull/1 > > To be clear, this is a work in progress and is not final or in force. > > We propose the mechanism for ratifying the these documents is to, after input from the community, have the current "matplotlib Executive Committee" (the signers of the FSA with NUMFocus) vote. > > Tom > > ps A very similar email was sent to the matplotlib-devel list on July 17 > > _______________________________________________ > 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 dipugee at gmail.com Mon Aug 29 20:33:28 2016 From: dipugee at gmail.com (=?utf-8?Q?Dipankar_=E2=80=9CDipu=E2=80=9D_Ganguly?=) Date: Mon, 29 Aug 2016 17:33:28 -0700 Subject: [Matplotlib-users] Matplotlib Figure margin transparancy In-Reply-To: <1346583602.12708199.1471147123082.JavaMail.yahoo@mail.yahoo.com> References: <1074502846.8976369.1470373577355.JavaMail.yahoo.ref@mail.yahoo.com> <1074502846.8976369.1470373577355.JavaMail.yahoo@mail.yahoo.com> <98196673.9419492.1470462972338.JavaMail.yahoo@mail.yahoo.com> <387513974.10971353.1470801664172.JavaMail.yahoo@mail.yahoo.com> <1629578972.11836424.1470932929152.JavaMail.yahoo@mail.yahoo.com> <20608107.11861840.1470934420482.JavaMail.yahoo@mail.yahoo.com> <1517479868.11744437.1470982986506.JavaMail.yahoo@mail.yahoo.com> <103083546.12553691.1471110844731.JavaMail.yahoo@mail.yahoo.com> <9A990727-7186-492E-8A46-BD051DE7B637@icloud.com> <62698539.133989.1471134888875@mail.yahoo.com> <7E40BF26-FE9F-410A-B252-6D22FDE2798E@icloud.com> <703791605.12336194.1471144736220.JavaMail.yahoo@mail.yahoo.com> <1321E0CB-8B9F-45D8-934C-FD28D6EAF8F4@icloud.com> <1346583602.12708199.1471147123082.JavaMail.yahoo@mail.yahoo.com> Message-ID: <53BC9BE7-9BFD-4409-BF86-6D07ACC5D1CC@gmail.com> Hi: I have ImageJ installed on the same Mac that I am using to develop IPython Image Processing algorithms under Anaconda Navigator?s Jupyter. Can I load ImageJ as a package in my Image Processing environment and call its functions as I do with matplotlib? Thanks Dipu Dipankar ?Dipu? Ganguly dipugee at gmail.com Cell: 408-203-8814 > On Aug 13, 2016, at 8:58 PM, Sudheer Joseph via Matplotlib-users wrote: > > Thank you, > but no mercy from Ipyton. > With best regards, > Sudheer > sjo at SJOLTP../startup~$ ls -lrt > total 12 > -rw-r--r-- 1 sjo sjo 371 Aug 13 21:20 README > -rw-rw-r-- 1 sjo sjo 156 Aug 14 07:56 XX00-path_set.py > -rw-rw-r-- 1 sjo sjo 136 Aug 14 08:10 00-path_set.ipy > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > From: Scott Lasley > To: Sudheer Joseph > Cc: "matplotlib-users at python.org" > Sent: Sunday, 14 August 2016 9:05 AM > Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy > > Try changing the name of the file 00-path_set.py to 00-path_set.ipy to indicate that it is an ipython file. That makes a difference on my system. > > hth, > Scott > > > On Aug 13, 2016, at 23:18, Sudheer Joseph > wrote: > > > > Thank you, > > I am facing a problem that edges are becoming transparent after fixing the inline issue. with ipython it was possible to fix this issue by configuring startup files as below. But jupyter seems not taking startup files > > With best regards. > > Sudheer > > > > /home/sjo/.ipython/profile_default/startup > > sjo at SJOLTP.. /startup~$ ls > > 00-path_set.py README XX00-path_set.py > > sjo at SJOLTP.. /startup~$ cat 00-path_set.py > > import sys > > import matplotlib as mpl > > mpl.rcParams['figure.facecolor'] = 'w' > > mypath="/home/sjo/PKGS/SJO_PY_CODES" > > sys.path.append(mypath) > > > > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com ;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > From: Scott Lasley > > > To: Sudheer Joseph > > > Cc: "matplotlib-users at python.org " > > > Sent: Sunday, 14 August 2016 8:36 AM > > Subject: Re: [Matplotlib-users] Matplotlib Figure margin transparancy > > > > It appears that jupyter does not use the .ipython_config.py file in the .jupyter directory. It does use the files in the profile_default directory in your ipython folder, usually ~/.ipython on a Mac. Here's how I was able to get jupyter qtconsole to launch with %pylab inline > > > > Create the default ipython profile files. I think this will overwrite any old default profile files so make a backup if you want to keep the old files > > $ ipython3 profile create > > Find the location of your default profile > > $ export myipython=$(ipython3 locate profile) > > Edit the ipython_config.py file in your default profile directory > > $ pico "$myipython"/ipython_config.py > > Uncomment the c.InteractiveShellApp.pylab line and change the value to 'inline' > > > > If want to load certain modules every time you launch qtconsole you can create a file named something like 00_my_startup.ipy in "$myipython"/startup/ containing your imports. See the "$myipython"/startup/README file for more info > > > > Here's the docs on configuring recent versions of ipython > > http://ipython.readthedocs.io/en/stable/config/intro.html#the-ipython-directory > > > > Best regards, > > Scott > > > > > On Aug 13, 2016, at 20:34, Sudheer Joseph > wrote: > > > > > > Thank you for the reply, > > > Yes this way it works, But I was looking towards a way to set this option in startup file so that one need not type %pylab inline always after starting the kernal > > > > > > > > > with best regards, > > > Suhdheer > > > On Sunday, 14 August 2016 4:48 AM, Scott Lasley > wrote: > > > > > > > > > If I launch jupyter with the --pylab flag it exits with this message > > > $ jupyter qtconsole --pylab > > > ... > > > [JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization: > > > [JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--pylab' > > > > > > Can you launch qtconsole then use the jupyter magics to set up pylab and inline plotting? > > > > > > $ jupyter qtconsole > > > (then in the QtConsole window enter) > > > In [1]: %pylab > > > Using matplotlib backend: MacOSX > > > Populating the interactive namespace from numpy and matplotlib > > > > > > In [2]: %matplotlib inline > > > > > > In [3]: plot([1, 2, 3]) > > > > > > plots in the QtConsole window. > > > > > > This is in OS X 10.11 with python 3.5.2, matplotlib 2.0.0b3, ipython 5.1.0 and jupyter 4.1.1. Note that I had some problems with the qtconsole when using the %pylab magic. It's possible the problems arose because I'm using the beta version of matplotlib 2. > > > > > > hth, > > > Scott > > > > > > > On Aug 13, 2016, at 13:54, Sudheer Joseph via Matplotlib-users > wrote: > > > > > > > > Hi all, > > > > After following suggestion to upgrade to jupyter, I have installed jupyter. but not able to start either jupyter or ipython with --pylab inline mode . > > > > If I start > > > > sjo at SJOLTP.. /.jupyter~$ ipython qtconsole --pylab inline > > > > [TerminalIPythonApp] WARNING | Subcommand `ipython qtconsole` is deprecated and will be removed in future versions. > > > > > > > > I wont sart qtconsole. > > > > If I start jupyter after going to .jupyter directory it starts with pylab inline taking it form profile file ipython_config.py > > > > If I go to any other directory it wont take the configuration file. > > > > I have below line in the above ipython_config.py > > > > c.TerminalIPythonApp.profile = u'/home/sjo/.jupyter/ipython_config.py' > > > > > > > > However none works for me to make pylab inline option. > > > > Can any one throw some light in to this issue? > > > > > > > > sjo at SJOLTP.. /.jupyter~$ ls > > > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > > > ipython.desktop jupyter_nb.desktop migrated qtpy > > > > sjo at SJOLTP.. /.jupyter~$ pwd > > > > /home/sjo/.jupyter > > > > sjo at SJOLTP.. /.jupyter~$ ls > > > > ipython_config.py jupyter.desktop jupyter_qtconsole_config.py pynb startup > > > > ipython.desktop jupyter_nb.desktop migrated qtpy > > > > sjo at SJOLTP.. /.jupyter~$ jupyter --version > > > > 4.1.1 > > > > sjo at SJOLTP.. /.jupyter~$ ipython --version > > > > 5.0.0 > > > > sjo at SJOLTP.. /.jupyter~$ > > > > > > > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com ;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > > > On Friday, 12 August 2016 12:02 PM, Sudheer Joseph > wrote: > > > > > > > > > > > > Thank you I got it fixed after following the link of bug report. > > > > I have added > > > > rcParams['figure.facecolor'] = 'w' > > > > in 00_startup.py file in my ipython startup directory which fixed the issue > > > > > > > > *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.India at gmail.com ;sudheer.joseph at yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** > > > > > > > > > > > > > > > > > > > > On Thursday, 11 August 2016 10:26 PM, Sudheer Joseph via Matplotlib-users > wrote: > > > > > > > > > > > > > > > > Thank you, > > > > I am having oldverdion 1.2 but if i upgrade many system related things are getting affected. So bit worried how to handle this.. > > > > > > > > Sudheer > > > > Sent from Yahoo Mail for iPhone > > > > > > > > On Thursday, August 11, 2016, 10:17 PM, Jens Nielsen > wrote: > > > > The relevant parameters are > > > > > > > > figure.facecolor > > > > and > > > > savefigure.facecolor > > > > > > > > but as I indicated before I think your issue is due to an out of date version of Jupyter/IPython and is fixed in the latest version. Please can you check which versions you are running > > > > I think the issue that you are seeing is https://github.com/ipython/ipython/issues/7964 which was fixed in IPython 3.2 > > > > > > > > > > > > best > > > > Jens > > > > > > > > > > > > On Thu, 11 Aug 2016 at 17:33 Sudheer Joseph > wrote: > > > > Thank you Benjamin & Jens, > > > > I have registered in python.org now. Regarding the issue I had already checked the matplotlibrc parameters. I tried increasing margin option but resulting in only plot getting shrunk. There is no apparent effect for facecolor parameter. May I know which parameter sets the margin as non-transparent? > > > > With best regards, > > > > Sudheer > > > > > > > > > > > > > > > > > > > > On Wednesday, 10 August 2016 8:19 PM, Benjamin Root > wrote: > > > > The other reason why this message never got posted is because this message was sent to the now defunct mailing list hosted by sourceforge. The mailing list moved about a year ago (I think) to python.org. You will have to subscribe in order to post unmoderated. > > > > > > > > https://mail.python.org/mailman/listinfo/matplotlib-users > > > > > > > > Ben Root > > > > On Wed, Aug 10, 2016 at 4:25 AM, Jens Nielsen > wrote: > > > > At least for me gmail put your mail in the spam folder. > > > > > > > > Anyway the inline backend is actually from in IPython/Jupyter and not in matplotlib. I think they have changed the default a couple of times and had the transparent as a default earlier but changed it. Looking at the current master it looks like they are respecting the matplotlib default colors from the matplotlib rc params. Can you please check which version on IPython and Jupyter you are running. > > > > > > > > You can change the matplotlib rc parameters as described in the docs http://matplotlib.org/ users/customizing.html# customizing-matplotlib but the default ones should be white. > > > > > > > > best > > > > Jens > > > > > > > > On Wed, 10 Aug 2016 at 05:06 Sudheer Joseph > wrote: > > > > Hi, > > > > I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? > > > > With best regards, > > > > Sudheer > > > > > > > > > > > > > > Dear Expert, > > > > > Recently after up-gradation of matplotlib and ubuntu 16.04 I am > > > > > getting transparent figure axis when using the "linux color scheme" > > > > > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > > > > > wanted to keep black screen as it reduces eye strain. > > > > > > > > > > ipython qtconsole --matplotlib inline > > > > > > > > > > If I save the image i am able to get axis properly but to see on screen as the > > > > > axis is not plotted with white background the black axis line and labels are not > > > > > visible. Earlier I used to get figures as attached in second figure. > > > > > Earlier Satus which I am looking for below link > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5ZmVlUHpRakZxUlk > > > > > Present status without boarder below link > > > > > > > > > > > > > > > https://drive.google.com/open? id= 0B3heUQNme7G5VkhZWHhiUnpfWDg > > > > > > > > > > Kindly suggest a solution > > > > > with best regards, > > > > > Sudheer > > > > > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > > planning reports. http://sdm.link/zohodev2dev > > > > ______________________________ _________________ > > > > Matplotlib-users mailing list > > > > > > > > Matplotlib-users at lists. sourceforge.net > > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > > > > ------------------------------ ------------------------------ ------------------ > > > > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > > > > patterns at an interface-level. Reveals which users, apps, and protocols are > > > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > > > planning reports. http://sdm.link/zohodev2dev > > > > ______________________________ _________________ > > > > Matplotlib-users mailing list > > > > Matplotlib-users at lists. sourceforge.net > > > > https://lists.sourceforge.net/ lists/listinfo/matplotlib- users > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > > > > _______________________________________________ > 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 jason at jasongrout.org Mon Aug 29 21:00:26 2016 From: jason at jasongrout.org (Jason Grout) Date: Tue, 30 Aug 2016 01:00:26 +0000 Subject: [Matplotlib-users] [Matplotlib-devel] mpl governance In-Reply-To: References: Message-ID: We're about to have some discussions in Jupyter about our governance model, and probably tweak it now that we have more experience with it. While that experience may not transfer to matplotlib's situation, it still might be good to see that discussion before making huge changes. Thanks, Jason On Mon, Aug 29, 2016 at 11:40 AM Paul Hobson wrote: > I think this is a good idea. > > On Sat, Aug 27, 2016 at 11:09 AM, Thomas Caswell > wrote: > >> Folks, >> >> Following up on last month's email, are there any comments, for or >> against, adopting the Jupyter governance model and the mechanism of >> ratifying the adoption? >> >> Tom >> >> >> On Sun, Jul 31, 2016 at 6:32 PM Thomas Caswell >> wrote: >> >>> Folks, >>> >>> During the sprints at SciPy Mike Droettboom and I started to adapt the >>> Jupyter governance documents for matplotlib. >>> >>> We are doing this in the open, and a pull request of the changes is at: >>> >>> https://github.com/matplotlib/governance/pull/1 >>> >>> To be clear, this is a work in progress and is not final or in force. >>> >>> We propose the mechanism for ratifying the these documents is to, after >>> input from the community, have the current "matplotlib Executive Committee" >>> (the signers of the FSA with NUMFocus) vote. >>> >>> Tom >>> >>> ps A very similar email was sent to the matplotlib-devel list on July 17 >>> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> >> > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel at python.org > https://mail.python.org/mailman/listinfo/matplotlib-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dottore.al.cubo.meno1 at gmail.com Wed Aug 31 09:06:05 2016 From: dottore.al.cubo.meno1 at gmail.com (Luca Grigoletto) Date: Wed, 31 Aug 2016 15:06:05 +0200 Subject: [Matplotlib-users] Fwd: Problem plotting Hatches In-Reply-To: References: Message-ID: Hello, I am plotting grib data on maps with matplotlib. I want to plot some types of hatches using a discrete values variable where the values are chosen arbitrarily. For example the 'o' hatch refers to value '6', '\' hatch to '4' and '+' to '2'. Values in matrix are only 2,4,6 and a background value (example 0). I obtain what I want easly with contourf, but as you can see in the attached image there are unwanted and ugly border plotted around some hatches (those with the higher values, contoured by hatch of previous lower value, except the first one wich is the '+' hatch). I tried every combination of functions possible or modfication of values in the data matrix to avoid those contours, but I did not find any solution. The fact is that it seems to be dependent on the type of grib/matrix I use, since with another set of grib of another model this problem does not show. So any of you have encountered this problem and resolved it in a easy and computationally low cost way? By the way, the same problem is present in classic contourf with shaded colors: with a discrete matrix, except the first one, each color in the colorbar is contoured with a contour of the previous color in the chosen colormap order. But I could overcome this problem using pcolormesh function even if it is not the best solution. Unfortunately pcolormesh does not plot hatches so the first problem described before actually is unresolved.I am using python 3.5.1 with matplotlib 1.5.1 Waiting for any feedabck Best regards Cristian Rendina -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot.png Type: image/png Size: 182782 bytes Desc: not available URL: From jason at jasongrout.org Wed Aug 31 12:20:49 2016 From: jason at jasongrout.org (Jason Grout) Date: Wed, 31 Aug 2016 16:20:49 +0000 Subject: [Matplotlib-users] [Matplotlib-devel] mpl governance In-Reply-To: References: Message-ID: FYI, here is the (beginning of the) public discussion of the Jupyter governance model we were talking about: https://github.com/jupyter/governance/issues/19 Jason On Mon, Aug 29, 2016 at 9:23 PM Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hi all, > > To extend on what Jason said, the discussion have started privately on > the Jupyter Steering council mailing list, we'll move it to a public > space but we want to shorten what have been posted and make sure it's > suitable for public consumption. > > -- > M > > On Mon, Aug 29, 2016 at 6:00 PM, Jason Grout wrote: > > We're about to have some discussions in Jupyter about our governance > model, > > and probably tweak it now that we have more experience with it. While > that > > experience may not transfer to matplotlib's situation, it still might be > > good to see that discussion before making huge changes. > > > > Thanks, > > > > Jason > > > > > > On Mon, Aug 29, 2016 at 11:40 AM Paul Hobson wrote: > >> > >> I think this is a good idea. > >> > >> On Sat, Aug 27, 2016 at 11:09 AM, Thomas Caswell > >> wrote: > >>> > >>> Folks, > >>> > >>> Following up on last month's email, are there any comments, for or > >>> against, adopting the Jupyter governance model and the mechanism of > >>> ratifying the adoption? > >>> > >>> Tom > >>> > >>> > >>> On Sun, Jul 31, 2016 at 6:32 PM Thomas Caswell > >>> wrote: > >>>> > >>>> Folks, > >>>> > >>>> During the sprints at SciPy Mike Droettboom and I started to adapt the > >>>> Jupyter governance documents for matplotlib. > >>>> > >>>> We are doing this in the open, and a pull request of the changes is > at: > >>>> > >>>> https://github.com/matplotlib/governance/pull/1 > >>>> > >>>> To be clear, this is a work in progress and is not final or in force. > >>>> > >>>> We propose the mechanism for ratifying the these documents is to, > after > >>>> input from the community, have the current "matplotlib Executive > Committee" > >>>> (the signers of the FSA with NUMFocus) vote. > >>>> > >>>> Tom > >>>> > >>>> ps A very similar email was sent to the matplotlib-devel list on July > 17 > >>> > >>> > >>> _______________________________________________ > >>> Matplotlib-users mailing list > >>> Matplotlib-users at python.org > >>> https://mail.python.org/mailman/listinfo/matplotlib-users > >>> > >> > >> _______________________________________________ > >> Matplotlib-devel mailing list > >> Matplotlib-devel at python.org > >> https://mail.python.org/mailman/listinfo/matplotlib-devel > > > > > > _______________________________________________ > > Matplotlib-devel mailing list > > Matplotlib-devel at python.org > > https://mail.python.org/mailman/listinfo/matplotlib-devel > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fchabouis at gmail.com Wed Aug 31 13:08:11 2016 From: fchabouis at gmail.com (Francis Chabouis) Date: Wed, 31 Aug 2016 17:08:11 +0000 Subject: [Matplotlib-users] How can I speed up a tricontourf call ? Message-ID: Hello, I'm working on this travel times project : https://ubikiwi.com/ouhabiter?locations=[[48.85522811385678,2.332191467285156]] and the contouring is done thanks to MPL tricontourf function (thanks!). As you can see it works pretty well and is fast enough. As I'm trying to expand the geographical coverage of the application (the whole country) I'm having performance issues with the contouring: - if I load the triangulation in memory at startup, it takes a huge amount of RAM. But the real problem is that even a very small contour in this huge triangulation takes a very long time to produce. For example with a small triangulation, a 20 minutes walk isoline is instant. The same contour on a country-wide triangulation takes 6sec. (It is not that long, but for a web application it is). - If on the other hand I compute a triangulation for each request, the contouring is fast but the triangulation creation is slow. Would someone have an optimisation idea ? Is it somehow possible to speed up the triangulation ? Any possible alternative ? Thanks a lot, Francis -------------- next part -------------- An HTML attachment was scrubbed... URL: