Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image size fix #882

Merged
merged 7 commits into from
Apr 6, 2023
Merged

Image size fix #882

merged 7 commits into from
Apr 6, 2023

Conversation

homosapien-lcy
Copy link
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.

@@ -38,8 +38,8 @@ def __init__(self):
self.renderer = plot.img_plot(
"imagedata",
name="plot1",
xbounds=xgrid,
ybounds=ygrid,
xbounds=(0, 6),
Copy link
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
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