Skip to content

plot_moran_simulation weird dimensions #82

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

Closed
darribas opened this issue Sep 2, 2019 · 1 comment
Closed

plot_moran_simulation weird dimensions #82

darribas opened this issue Sep 2, 2019 · 1 comment
Assignees

Comments

@darribas
Copy link
Member

darribas commented Sep 2, 2019

With the following preamble:

%matplotlib inline
import matplotlib.pyplot as plt
from pysal.viz.splot import esda as esdaplot
from pysal.explore import esda
from pysal.lib import weights
import geopandas

db = geopandas.read_file("https://github.com/rsbivand/ectqg19-workshop/raw/master/data/lux_regions.gpkg")
w = weights.Queen.from_dataframe(db)
w.transform = "R"

mi = esda.Moran(db["light_level"], w)

The following produces this output:

Annotation 2019-09-02 191518

Shouldn't the figure by 6x6? Also, why is it so narrow (if you don't set up the ax, it gives the same image)?

@darribas
Copy link
Member Author

darribas commented Sep 2, 2019

Nevermind, I realised if you set aspect_equal=False, the plot looks more normal... Closing for now.

@darribas darribas closed this as completed Sep 2, 2019
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