Re: [Matplotlib-users] Call for new style defaults

2015-07-22 Thread Slavin, Jonathan
​I second that motion and would especially like it if the default color cycle were longer than the current one (7 colors). Jon​ On Wed, Jul 22, 2015 at 4:30 AM, < matplotlib-users-requ...@lists.sourceforge.net> wrote: > From: Thomas Robitaille > To: Thomas Caswell > Cc: Matplotlib Users > Dat

Re: [Matplotlib-users] how to prevent colorbar from taking space from axes

2014-12-12 Thread Slavin, Jonathan
ovides you a nice way to preallocate space for colorbars in different > ways: > > http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html?highlight=axes_grid1#axes-grid1 > > I hope that helps! > Ben Root > > > On Thu, Dec 11, 2014 at 1:49 PM, Slavin, Jonathan > wrote:

[Matplotlib-users] how to prevent colorbar from taking space from axes

2014-12-11 Thread Slavin, Jonathan
Hi, I'm trying to make a plot with four panes (2x2). The two on top are images, created with pcolormesh, while the ones on the bottom are line plots. I'd like to the axes to line up -- which they do -- but when I add a colorbar to the top right, it steals space from the image plot. I only need

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
ts work, it might be lazily loading data for you, so the test >> without the display of the images might not actually be loading any data >> into memory. >> >> Ben Root >> >> On Tue, Oct 14, 2014 at 11:22 AM, Slavin, Jonathan < >> jsla...@cfa.harvard

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
Hmm. I just saw that you suggest fig.draw(). Is there a difference with plt.draw()? Jon On Tue, Oct 14, 2014 at 11:20 AM, Slavin, Jonathan wrote: > Hi Ben, > > Sorry, in my little example, I left out a few things. I do update first > after the first call. And I do call draw()

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
pening is that you are not telling the image to redraw, so you >> are only seeing it refresh for other reasons. Try adding a fig.draw() call >> prior to the raw_input() call. >> >> Cheers! >> Ben Root >> >> On Tue, Oct 14, 2014 at 10:03 AM, Slavin, Jonat

[Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
Hi all, In my work lately I have often wanted to browse through a series of images. This means displaying the image(s), looking at it/them and then continuing. I have coded this in a few different ways, but it is generally pretty slow -- which is to say that the image display takes more than a c

Re: [Matplotlib-users] Pick a particular data from array

2014-06-19 Thread Slavin, Jonathan
​So do you want to find the particular row or column to plot interactively?​ For that you should look at "Event handling and picking" in the matplotlib docs (http://matplotlib.org/users/event_handling.html). It shows there how to return the values of the location of mouse click events. Once you

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Slavin, Jonathan
​Another alternative, if a vector graphics format doesn't work, is to make your png figure large. Then when you shrink it down to fit in your slide, it should still have good resolution. Jon​ On Mon, Apr 21, 2014 at 10:13 AM, < matplotlib-users-requ...@lists.sourceforge.net> wrote: > No Powerpo

Re: [Matplotlib-users] how to reduce the file size of plots generated with matplotlib

2014-03-25 Thread Slavin, Jonathan
I think what the responders have in mind is simply outputting files in a different format, e.g. png, which is rasterized. One alternative you might consider is using code written by Tom Robataille called rasterized_scatter. It automatically rasterizes your data points. You can find it on github.