splot icon indicating copy to clipboard operation
splot copied to clipboard

Sunsetting splot

Open martinfleis opened this issue 1 year ago • 10 comments

As per PySAL dev team discussions, splot is scheduled to be archived in future. Functionality for plotting of Moran statistics has been moved to esda to the module where the statistics itself is implemented. Same is happening over in giddy.

A few questions on what should happen next.

  1. What should happen with VBA plotting and related tools? There's no clear home for it anywhere else in the PySAL I think.
  2. What about convenience functions for subplots?
  • plot_local_autocorrelation- https://github.com/pysal/esda/pull/360
  • plot_moran <- this is easy subplot, probably not worth exposing
  • plot_moran_bv <- as above
  • moran_facet - https://github.com/pysal/esda/pull/359
  1. How to approach sunsetting? Deprecation notices in splot pointing to esda? Deprecation notice on import?

cc @pysal/devs

martinfleis avatar Jan 05 '25 20:01 martinfleis

  1. What should happen with VBA plotting and related tools?

Perhaps libpysal if nothing else fits?

  1. What about convenience functions for subplots?

Is there any drawback to including at least [1] & [4] in esda?

  1. How to approach sunsetting? Deprecation notices in splot pointing to esda? Deprecation notice on import?

I'd vote for deprecation notice on import.

jGaboardi avatar Jan 05 '25 20:01 jGaboardi

Is there any drawback to including at least [1] & [4] in esda?

Not really, just more work :).

martinfleis avatar Jan 05 '25 20:01 martinfleis

I just realised that there is also some stuff that uses Bokeh for plotting in _viz_bokeh.py that is not present in the API reference. Should that be moved somewhere?

martinfleis avatar Jan 05 '25 21:01 martinfleis

I'd vote for deprecation notice on import.

same

knaaptime avatar Jan 06 '25 16:01 knaaptime

  1. I believe that esda is the best fit for VBA plotting. While it's not tied to ESDA packages, exploratory spatial data analysis aligns conceptually with VBA plotting.

  2. Adding both [1] and [4] would be great enhancement for esda

  3. I agree with James and Eli.

gegen07 avatar Jan 06 '25 18:01 gegen07

My two cents, in case they’re helpful in any way:

What should happen with VBA plotting and related tools? There's no clear home for it anywhere else in the PySAL I think.

My first thought was mapclassify with all functionality optional and conditional on the viz libs installed (I know there was a lot of work to keep the library pretty lightweight and all focused on classification only. But my sense would be that VBA is a way of classifying that is bi-variate.

If that doesn’t work for some reason (e.g., too much work), esda as suggested would be a fitting home too.

What about convenience functions for subplots?

My sense would be esda as most (all?) functionality falls within exploratory data analysis and, in particular, analysis of spatial autocorrelation patterns.

darribas avatar Jan 15 '25 21:01 darribas

+1 on moving the vba classification into mapclassify

sjsrey avatar Jan 15 '25 22:01 sjsrey

Alright, I have opened remaining PRs for esda and am happy to finish draft in giddy as soon as I get some feedback there.

Happy with any decision regarding VBA but will probably leave that for someone else to tackle.

martinfleis avatar Jan 18 '25 21:01 martinfleis

I just realised that there is also some stuff that uses Bokeh for plotting in _viz_bokeh.py that is not present in the API reference. Should that be moved somewhere?

Just remembering this. I suppose we should decide whether in integrate this bokeh functionality into the "home" packages (where possible) or simply sunset it.

jGaboardi avatar Jun 19 '25 01:06 jGaboardi

I'd vote for deprecation notice on import.

same

Also seems like we never got to the deprecation notice on import. I can put in a PR for that, but perhaps we should wait until we handle creating migration notebook(s) and figure out the Bokeh situation.

jGaboardi avatar Jun 19 '25 01:06 jGaboardi