From tcaswell at gmail.com Tue Apr 10 20:16:01 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Wed, 11 Apr 2018 00:16:01 +0000 Subject: [Matplotlib-devel] John Hunter Matplotlib Summer Fellowship 2018 Message-ID: Folks, We are happy to announce that we will be supporting a summer student to work on Matplotlib this summer! The student will be writing a Matplotlib based renderer for Altair and primarily mentored by Hannah. Altair is a declarative statistical visualization library for Python, based on Vega and Vega-Lite. Currently Altair charts can only be rendered in the browser, so we are looking for a student to write a Matplotlib based renderer for Altair. This renderer would take in Altair objects and produce Matplotlib objects for integration with existing tools and to generate publication-quality figures. To apply, please submit a cover letter and resume/CV to matplotlib at numfocus.org by May 4, 2018. https://www.numfocus.org/programs/john-hunter-technology-fellowship for more details. Please distribute this to your networks! Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.haessig at crans.org Wed Apr 11 16:02:24 2018 From: pierre.haessig at crans.org (Pierre Haessig) Date: Wed, 11 Apr 2018 22:02:24 +0200 Subject: [Matplotlib-devel] plot markers with drawstyle='steps-post' Message-ID: <74898dbf-8508-8f64-819b-4fb69e53062c@crans.org> Hello, I have noticed a change with line plots using drawstyle='steps-post' and markers. Using Matplotlib 2.2.2 (Conso_gaz_model.png) there is a marker at each "edge" of the line. In a previous Matplotlib version (2.1 or 2.0, cf. file Conso_gaz_model (copie).png), there was only a marker at the actual data point. Is this a well-known change or a regression ? (I've quickly looked at the issue tracker, but didn't find something) Best, Pierre -------------- next part -------------- A non-text attachment was scrubbed... Name: Conso_gaz_model.png Type: image/png Size: 46262 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Conso_gaz_model (copie).png Type: image/png Size: 49402 bytes Desc: not available URL: From tcaswell at gmail.com Wed Apr 11 16:12:35 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Wed, 11 Apr 2018 20:12:35 +0000 Subject: [Matplotlib-devel] plot markers with drawstyle='steps-post' In-Reply-To: <74898dbf-8508-8f64-819b-4fb69e53062c@crans.org> References: <74898dbf-8508-8f64-819b-4fb69e53062c@crans.org> Message-ID: Can you please create a bug report for that? This is an unintentional change related to simplifying some internal implementation details. For now I suggest plotting your data twice: once with step and once with just markers which should work on all versions of Matplotlib. Tom On Wed, Apr 11, 2018 at 4:08 PM Pierre Haessig wrote: > Hello, > > I have noticed a change with line plots using drawstyle='steps-post' and > markers. > > Using Matplotlib 2.2.2 (Conso_gaz_model.png) there is a marker at each > "edge" of the line. In a previous Matplotlib version (2.1 or 2.0, cf. > file Conso_gaz_model (copie).png), there was only a marker at the actual > data point. > > Is this a well-known change or a regression ? (I've quickly looked at > the issue tracker, but didn't find something) > > Best, > > Pierre > > > _______________________________________________ > 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 pierre.haessig at crans.org Thu Apr 12 03:25:36 2018 From: pierre.haessig at crans.org (Pierre Haessig) Date: Thu, 12 Apr 2018 09:25:36 +0200 Subject: [Matplotlib-devel] plot markers with drawstyle='steps-post' In-Reply-To: References: <74898dbf-8508-8f64-819b-4fb69e53062c@crans.org> Message-ID: Thanks for the feedback. Here is the bug report https://github.com/matplotlib/matplotlib/issues/11031 "wrong x-position of marker with drawstyle='steps-xxx'". I hope the title is appropriate. Is there a unit test for plots with drawstyle='steps-xxx' ? Best, Pierre Le 11/04/2018 ? 22:12, Thomas Caswell a ?crit?: > Can you please create a bug report for that?? This is an unintentional > change related to simplifying some internal implementation details. > > For now I suggest plotting your data twice: once with step and once > with just markers which should work on all versions of Matplotlib. > > Tom > > On Wed, Apr 11, 2018 at 4:08 PM Pierre Haessig > > wrote: > > Hello, > > I have noticed a change with line plots using > drawstyle='steps-post' and > markers. > > Using Matplotlib 2.2.2 (Conso_gaz_model.png) there is a marker at > each > "edge" of the line. In a previous Matplotlib version (2.1 or 2.0, cf. > file Conso_gaz_model (copie).png), there was only a marker at the > actual > data point. > > Is this a well-known change or a regression ? (I've quickly looked at > the issue tracker, but didn't find something) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcaswell at gmail.com Thu Apr 12 07:02:28 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Thu, 12 Apr 2018 11:02:28 +0000 Subject: [Matplotlib-devel] plot markers with drawstyle='steps-post' In-Reply-To: References: <74898dbf-8508-8f64-819b-4fb69e53062c@crans.org> Message-ID: Thanks. There are unit tests for step, but not with markers. On Thu, Apr 12, 2018, 03:25 Pierre Haessig wrote: > Thanks for the feedback. Here is the bug report > https://github.com/matplotlib/matplotlib/issues/11031 "wrong x-position > of marker with drawstyle='steps-xxx'". I hope the title is appropriate. > > Is there a unit test for plots with drawstyle='steps-xxx' ? > > Best, > > Pierre > > Le 11/04/2018 ? 22:12, Thomas Caswell a ?crit : > > Can you please create a bug report for that? This is an unintentional > change related to simplifying some internal implementation details. > > For now I suggest plotting your data twice: once with step and once with > just markers which should work on all versions of Matplotlib. > > Tom > > On Wed, Apr 11, 2018 at 4:08 PM Pierre Haessig > wrote: > >> Hello, >> >> I have noticed a change with line plots using drawstyle='steps-post' and >> markers. >> >> Using Matplotlib 2.2.2 (Conso_gaz_model.png) there is a marker at each >> "edge" of the line. In a previous Matplotlib version (2.1 or 2.0, cf. >> file Conso_gaz_model (copie).png), there was only a marker at the actual >> data point. >> >> Is this a well-known change or a regression ? (I've quickly looked at >> the issue tracker, but didn't find something) >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamcwatson57 at gmail.com Mon Apr 16 10:08:43 2018 From: adamcwatson57 at gmail.com (Adam Watson) Date: Mon, 16 Apr 2018 14:08:43 +0000 Subject: [Matplotlib-devel] mpl_finance maintainer Message-ID: Hello, Are you still looking for a mpl_finance maintainer? I don't know if I have the credentials you're looking for but I've used Python for about 4 years now and am using the mpl_finance package a lot in my current projects, so I'd love to take on the responsibility if you still need someone. My GitHub handle is a-watson, but it doesn't have much on it. Thank you for your consideration! Regards, Adam Watson -------------- next part -------------- An HTML attachment was scrubbed... URL: From efiring at hawaii.edu Mon Apr 16 17:06:15 2018 From: efiring at hawaii.edu (Eric Firing) Date: Mon, 16 Apr 2018 11:06:15 -1000 Subject: [Matplotlib-devel] mpl_finance maintainer In-Reply-To: References: Message-ID: <34e9d1fd-ab75-0616-e745-ea6564f4cf7b@hawaii.edu> Adam, Yes, we are still looking, so your interest is welcome news! Thomas Caswell might want to say something about desired activities--making releases--that go beyond working with the code. Based on your use of the package, do you have some improvements? Bugs that need to be fixed? Eric On 2018/04/16 4:08 AM, Adam Watson wrote: > Hello, > > Are you still looking for a mpl_finance maintainer? I don't know if I > have the credentials you're looking for but I've used Python for about 4 > years now and am using the mpl_finance package a lot in my current > projects, so I'd love to take on the responsibility if you still need > someone. My GitHub handle is a-watson, but it doesn't have much on it. > > Thank you for your consideration! > > Regards, > Adam Watson > > > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel at python.org > https://mail.python.org/mailman/listinfo/matplotlib-devel > From tcaswell at gmail.com Tue Apr 17 11:40:16 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Tue, 17 Apr 2018 15:40:16 +0000 Subject: [Matplotlib-devel] mpl_finance maintainer In-Reply-To: <34e9d1fd-ab75-0616-e745-ea6564f4cf7b@hawaii.edu> References: <34e9d1fd-ab75-0616-e745-ea6564f4cf7b@hawaii.edu> Message-ID: Adam, I have added you to the mpl-finance team, you should have an email from github to accept. Once you do see https://github.com/orgs/matplotlib/teams/mpl-finance for discussions on how to get the first release out the door! Tom On Mon, Apr 16, 2018 at 5:06 PM Eric Firing wrote: > Adam, > > Yes, we are still looking, so your interest is welcome news! Thomas > Caswell might want to say something about desired activities--making > releases--that go beyond working with the code. > > Based on your use of the package, do you have some improvements? Bugs > that need to be fixed? > > Eric > > On 2018/04/16 4:08 AM, Adam Watson wrote: > > Hello, > > > > Are you still looking for a mpl_finance maintainer? I don't know if I > > have the credentials you're looking for but I've used Python for about 4 > > years now and am using the mpl_finance package a lot in my current > > projects, so I'd love to take on the responsibility if you still need > > someone. My GitHub handle is a-watson, but it doesn't have much on it. > > > > Thank you for your consideration! > > > > Regards, > > Adam Watson > > > > > > _______________________________________________ > > 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 jklymak at uvic.ca Mon Apr 23 12:20:17 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Mon, 23 Apr 2018 09:20:17 -0700 Subject: [Matplotlib-devel] Call 15:00 EDT today... Message-ID: <375D0C32-7D3C-41F2-B40B-CCECDA9C192F@uvic.ca> Hi all, The weekly developers call is today at 15:00 EDT, though I think Thomas said he can?t make it this week. Start of an agenda is here; feel free to add to it, even if you cannot make the call (though include enough info so we can discuss) https://paper.dropbox.com/doc/Matplotlib-meeting-agenda-aAmENlkgepgsMeDZtlsYu We are going to try archiving the notes from the meetings at https://github.com/matplotlib/ProjectManagement Feedback welcome?. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ From tcaswell at gmail.com Mon Apr 23 13:23:34 2018 From: tcaswell at gmail.com (Thomas Caswell) Date: Mon, 23 Apr 2018 17:23:34 +0000 Subject: [Matplotlib-devel] Call 15:00 EDT today... In-Reply-To: <375D0C32-7D3C-41F2-B40B-CCECDA9C192F@uvic.ca> References: <375D0C32-7D3C-41F2-B40B-CCECDA9C192F@uvic.ca> Message-ID: Thanks for doing this Jody! Tom PS I'm on a train with only limited internet connectivity today so will miss the call On Mon, Apr 23, 2018 at 12:31 PM Jody Klymak wrote: > > Hi all, > > The weekly developers call is today at 15:00 EDT, though I think Thomas > said he can?t make it this week. > > Start of an agenda is here; feel free to add to it, even if you cannot > make the call (though include enough info so we can discuss) > > > https://paper.dropbox.com/doc/Matplotlib-meeting-agenda-aAmENlkgepgsMeDZtlsYu > > We are going to try archiving the notes from the meetings at > https://github.com/matplotlib/ProjectManagement > Feedback welcome?. > > Cheers, Jody > > > -- > Jody Klymak > http://web.uvic.ca/~jklymak/ > > > > > > _______________________________________________ > 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 jklymak at uvic.ca Mon Apr 23 16:15:41 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Mon, 23 Apr 2018 13:15:41 -0700 Subject: [Matplotlib-devel] weekly call notes... Message-ID: Hi all, Eric F, Ryan M, Hannah A, and myself on the call: Notes are now available here: https://github.com/matplotlib/ProjectManagement Agenda items for next week can be added to the Dropbox Paper document: https://paper.dropbox.com/doc/Matplotlib-meeting-agenda-aAmENlkgepgsMeDZtlsYu Thanks! Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ From rohit010493 at gmail.com Fri Apr 27 06:42:42 2018 From: rohit010493 at gmail.com (rohit0104) Date: Fri, 27 Apr 2018 03:42:42 -0700 (MST) Subject: [Matplotlib-devel] help in plotting 3D bathmetry of GEBCO data Message-ID: <1524825762306-0.post@n5.nabble.com> Hi all, I want to plot 3D bathymetry from GEBCO data. I am attaching my code and plot below, can anyone help me in rectifying my code for proper plot of bathymetry. ''' ________________________ surface (color map) ====================== Demonstrates plotting a 3D surface colored with the coolwarm color map. The surface is made opaque by using antialiased=False. Also demonstrates using the LinearLocator and custom formatting for the z axis tick labels. ''' from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import numpy as np from netCDF4 import Dataset as NetCDFFile fig = plt.figure() ax = fig.gca(projection='3d') nc = NetCDFFile('GEBCO_2014_2D.nc') X = nc.variables['lon'][:] Y = nc.variables['lat'][:] Z = nc.variables['elevation'][:] X,Y = np.meshgrid(X,Y) # Plot the surface. surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm, linewidth=0, antialiased=False) # Customize the z axis. ax.set_zlim(-1.01, 1.01) ax.zaxis.set_major_locator(LinearLocator(10)) ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f')) # Add a color bar which maps values to colors. fig.colorbar(surf, shrink=0.5, aspect=5) plt.show() -- Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-devel-f28077.html From pmhobson at gmail.com Fri Apr 27 09:52:11 2018 From: pmhobson at gmail.com (Paul Hobson) Date: Fri, 27 Apr 2018 06:52:11 -0700 Subject: [Matplotlib-devel] help in plotting 3D bathmetry of GEBCO data In-Reply-To: <1524825762306-0.post@n5.nabble.com> References: <1524825762306-0.post@n5.nabble.com> Message-ID: Rohit, Based on your email, I'm not sure what your question is. Without seeing at least the plot that is generated or an error message, the only thing I can say is that you probably don't want to generate a grid of lat/long coordinates. So I would recommend reprojecting your data into a different (UTM perhaps) coordinate system. It's also going to be very difficult to troubleshoot whatever problem you're having without seeing your data. NetCDF files can be quite big. So for troubleshooting purposes, it'll make more sense to "mock up" (or hard-code) a very small subset of representative data as numpy arrays, rather than reading in the full NetCDF file. -paul On Fri, Apr 27, 2018 at 3:42 AM, rohit0104 wrote: > Hi all, > I want to plot 3D bathymetry from GEBCO data. I am attaching my code and > plot below, can anyone help me in rectifying my code for proper plot of > bathymetry. > > > > ''' > ________________________ > surface (color map) > ====================== > > Demonstrates plotting a 3D surface colored with the coolwarm color map. > The surface is made opaque by using antialiased=False. > > Also demonstrates using the LinearLocator and custom formatting for the > z axis tick labels. > ''' > > from mpl_toolkits.mplot3d import Axes3D > import matplotlib.pyplot as plt > from matplotlib import cm > from matplotlib.ticker import LinearLocator, FormatStrFormatter > import numpy as np > from netCDF4 import Dataset as NetCDFFile > > > > fig = plt.figure() > ax = fig.gca(projection='3d') > > nc = NetCDFFile('GEBCO_2014_2D.nc') > > X = nc.variables['lon'][:] > Y = nc.variables['lat'][:] > Z = nc.variables['elevation'][:] > > X,Y = np.meshgrid(X,Y) > > # Plot the surface. > surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm, > linewidth=0, antialiased=False) > > # Customize the z axis. > ax.set_zlim(-1.01, 1.01) > ax.zaxis.set_major_locator(LinearLocator(10)) > ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f')) > > # Add a color bar which maps values to colors. > fig.colorbar(surf, shrink=0.5, aspect=5) > > plt.show() > > > > > > -- > Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-devel- > f28077.html > _______________________________________________ > 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 jklymak at uvic.ca Fri Apr 27 10:02:25 2018 From: jklymak at uvic.ca (Jody Klymak) Date: Fri, 27 Apr 2018 07:02:25 -0700 Subject: [Matplotlib-devel] help in plotting 3D bathmetry of GEBCO data In-Reply-To: References: <1524825762306-0.post@n5.nabble.com> Message-ID: <22F584E4-6876-43B6-A6F2-386D6B6F6C60@uvic.ca> I?ll take a wild guess that the GEBCO data base doesn?t have zlimits between -1 and 1 as a start. Sent from my iPhone > On Apr 27, 2018, at 6:52 AM, Paul Hobson wrote: > > Rohit, > > Based on your email, I'm not sure what your question is. Without seeing at least the plot that is generated or an error message, the only thing I can say is that you probably don't want to generate a grid of lat/long coordinates. So I would recommend reprojecting your data into a different (UTM perhaps) coordinate system. > > It's also going to be very difficult to troubleshoot whatever problem you're having without seeing your data. NetCDF files can be quite big. So for troubleshooting purposes, it'll make more sense to "mock up" (or hard-code) a very small subset of representative data as numpy arrays, rather than reading in the full NetCDF file. > > -paul > >> On Fri, Apr 27, 2018 at 3:42 AM, rohit0104 wrote: >> Hi all, >> I want to plot 3D bathymetry from GEBCO data. I am attaching my code and >> plot below, can anyone help me in rectifying my code for proper plot of >> bathymetry. >> >> >> >> ''' >> ________________________ >> surface (color map) >> ====================== >> >> Demonstrates plotting a 3D surface colored with the coolwarm color map. >> The surface is made opaque by using antialiased=False. >> >> Also demonstrates using the LinearLocator and custom formatting for the >> z axis tick labels. >> ''' >> >> from mpl_toolkits.mplot3d import Axes3D >> import matplotlib.pyplot as plt >> from matplotlib import cm >> from matplotlib.ticker import LinearLocator, FormatStrFormatter >> import numpy as np >> from netCDF4 import Dataset as NetCDFFile >> >> >> >> fig = plt.figure() >> ax = fig.gca(projection='3d') >> >> nc = NetCDFFile('GEBCO_2014_2D.nc') >> >> X = nc.variables['lon'][:] >> Y = nc.variables['lat'][:] >> Z = nc.variables['elevation'][:] >> >> X,Y = np.meshgrid(X,Y) >> >> # Plot the surface. >> surf = ax.plot_surface(X, Y, Z, cmap=cm.coolwarm, >> linewidth=0, antialiased=False) >> >> # Customize the z axis. >> ax.set_zlim(-1.01, 1.01) >> ax.zaxis.set_major_locator(LinearLocator(10)) >> ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f')) >> >> # Add a color bar which maps values to colors. >> fig.colorbar(surf, shrink=0.5, aspect=5) >> >> plt.show() >> >> >> >> >> >> -- >> Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-devel-f28077.html >> _______________________________________________ >> 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: