Skip to content

wx.lib.plot scrollbars do not show ever #1428

@kurisutsukato

Description

@kurisutsukato

platform: all
wxPython Version & source: 4.0.3 pypi
Python Version & source: 2.7

The scrollbars of a wx.lib.plot.PlotCanvas are not shown ever:

The issues can be observed in the demo or by running the following code.

from wx.lib.plot import PlotCanvas, PlotGraphics, PolyLine
import wx
import numpy as np

app = wx.App()
f = wx.Frame(None)
canvas = PlotCanvas(f)
f.Fit()
f.Show()

x = np.linspace(0,10,100)
y = x**2

line = PolyLine(np.array([x,y]).T)
pg = PlotGraphics([line])
canvas.Draw(pg)
canvas.showScrollbars = True
canvas.enableZoom = True

app.MainLoop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions