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

Modifying QStatistic.plot() output #143

Open
rheag91 opened this issue Jul 30, 2024 · 1 comment
Open

Modifying QStatistic.plot() output #143

rheag91 opened this issue Jul 30, 2024 · 1 comment

Comments

@rheag91
Copy link

rheag91 commented Jul 30, 2024

Hello,
I am trying to figure out how to modify the output of QStatistic.plot() (which outputs a quadrat plot); specifically, I need to change the dimensions of the plot and increase the resolution. I've attached a picture of what I'm getting right now. Ideally I would like to connect the plot to a matplotlib subplot where I can control all these features, but I cannot figure out how to do that from the documentation for PointPats; it seems to be possible for PointPattern.plot() but those methods don't seem to work for QStatistic.plot(). Would appreciate any help with this!

Thanks!

image

@martinfleis
Copy link
Member

I admit that it is not optimal now but you may make a use of the fact that plot() returns matplotlib axis object. So you may be able to adapt it afterwards, using set_aspect and similar matplotlib methods. These methods would need to be refactor a bit to allow plotting on custom axes (which would be certainly desirable!) within a subplot.

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

No branches or pull requests

2 participants