pysal / pointpats

Planar Point Pattern Analysis in PySAL
https://pysal.org/pointpats/
BSD 3-Clause "New" or "Revised" License
83 stars 26 forks source link

Qstatistic.plot does not return axes nor take axes #50

Closed ljwolf closed 10 months ago

ljwolf commented 4 years ago

It's challenging to use QStatistic.plot alongside contextily, since the method

  1. does not allow you to pass an ax
  2. it constructs an axis (in self.pp.plot()), rather than requesting an axis using plt.gca()
  3. it calls ffigure.show() rather than returning figure/axis components that can be modified after plotting.

This means we can't add basemaps, as far as I can tell.

ljwolf commented 4 years ago

I think, looking at many of the plotting methods in pointpats, this is a possibility for enhancement. It should be pretty straightforward if we use matplotlib-style returning of figures/axes & taking an ax argument.

martinfleis commented 10 months ago

Closed by #116