Spyder: Move plots in Plots pane

Created on 6 Apr 2020  路  10Comments  路  Source: spyder-ide/spyder

Possible? I currently have to re-plot stuff to order them a certain way for viewing, which can be quite expensive. The Plots pane is nice for directly comparing images, but this feature seems absent.

Plots Enhancement

Most helpful comment

@jnsebgosselin Yeah, in the thumbnail scrollbar. Drag & drop doesn't really matter - though it'd be even better if it had shortcuts.

@tstreibl Do you mean like below? You can undock the Plots pane and drag away the thumbnail bar to maximize view size.

image


Plot code

import numpy as np
import matplotlib.pyplot as plt

def pplot(r, w=1, h=1):
    plt.polar(r)
    plt.gcf().set_size_inches(18 * w, 18 * h)

pplot(- np.linspace(0, 1, 300)**12)
pplot(np.exp(- np.linspace(0, 1, 400)))
pplot(np.linspace(0, 1, 300) ** 2)

All 10 comments

@jnsebgosselin what do you think?

Nice suggestion @OverLordGoldDragon! It shouldn't be that hard to implement (I think).

Do you mean moving up and down the plots in the thumbnail scrollbar?

If it is implemented with toolbuttons like for the Python path manger, this will be easy. If it needs to be done with some kind of drag and drop feature, this will be harder.

image

Would be great to combine this with a full size view of the thumb upon double click? Ideally you could scroll through your thumbs with "image up", "image down" keys in full size view. Maybe the magnifying glass icons already serve this purpos, but in my case they are disabled, at least for mathplotlib pictures.

@jnsebgosselin Yeah, in the thumbnail scrollbar. Drag & drop doesn't really matter - though it'd be even better if it had shortcuts.

@tstreibl Do you mean like below? You can undock the Plots pane and drag away the thumbnail bar to maximize view size.

image


Plot code

import numpy as np
import matplotlib.pyplot as plt

def pplot(r, w=1, h=1):
    plt.polar(r)
    plt.gcf().set_size_inches(18 * w, 18 * h)

pplot(- np.linspace(0, 1, 300)**12)
pplot(np.exp(- np.linspace(0, 1, 400)))
pplot(np.linspace(0, 1, 300) ** 2)

Wow - did't realize that it's so easy. Sorry that I did't get it. Problem solved. Thanks.

Maybe the magnifying glass icons already serve this purpos, but in my case they are disabled, at least for mathplotlib pictures.

They are disabled when Fits plot to window is checked.

image

komplete shame on me. Thanks.

No worries, it's not like it was well documented and you are not the first confused by this. Maybe we need to change that to make it less confusing...

It's intuitive and fit's together once you decide to play around with the docking capabilities. I like that it's also easy to redock, so it's in deed a full featured image viewer. Great.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goanpeca picture goanpeca  路  3Comments

LDONT picture LDONT  路  3Comments

spyder-bot picture spyder-bot  路  3Comments

marianux picture marianux  路  3Comments

spyder-bot picture spyder-bot  路  3Comments