enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
291 stars 101 forks source link

Image size fix #882

Closed homosapien-lcy closed 1 year ago

homosapien-lcy commented 1 year ago

closes issue #867 The demo chaco/examples/tutorials/scipy2008/traits_image.py is broken as mentioned in the issue. Since this is a very early example (2008), it's likely some updates in chaco has broken this demo. I found that all recent calls to img_plot (line 678, chaco/chaco/plot.py) uses a range other than mash for xbounds and ybounds since plot._process_2d_bounds will regenerate the mash with the range that has the correct dimension. Thus I change this example to use a range other than a mesh as well.