Skip to content

Image size fix#882

Merged
homosapien-lcy merged 7 commits into
mainfrom
image_size_fix
Apr 6, 2023
Merged

Image size fix#882
homosapien-lcy merged 7 commits into
mainfrom
image_size_fix

Conversation

@homosapien-lcy
Copy link
Copy Markdown
Contributor

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.

name="plot1",
xbounds=xgrid,
ybounds=ygrid,
xbounds=(0, 6),
Copy link
Copy Markdown
Member

@mdickinson mdickinson Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are the bounds given as 0 and 6 when x goes from 0 to 8?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it should be the other way around... Just fixed

@homosapien-lcy homosapien-lcy merged commit f32e01c into main Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants