Opened 5 years ago

Closed 5 years ago

#2159 closed defect (wontfix)

pySAL deb missing color

Reported by: darkblueb Owned by: osgeolive@…
Priority: normal Milestone: OSGeoLive13.0
Component: OSGeoLive Keywords: python, pysal
Cc:

Description

%matplotlib inline
from pysal.contrib.viz.color import plot_cmaps 
plot_cmaps('diverging', selected=3)

---
ImportError                               Traceback (most recent call last)
<ipython-input-4-8560e3a65132> in <module>()
     18 # based on class_val and data_type
     19 
---> 20 from pysal.contrib.viz.color import color_display_types
     21 from pysal.contrib.viz.color import plot_cmaps as pcmaps
     22 

ImportError: No module named pysal.contrib.viz.color

Change History (5)

comment:1 by darkblueb, 5 years ago

---
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-efd92619b3e7> in <module>()
      2 import numpy as np
      3 from pysal.contrib import pdio
----> 4 from pysal.contrib.viz import mapping as maps
      5 import matplotlib.pyplot as plt
      6 import seaborn as sns

/usr/lib/python3/dist-packages/pysal/contrib/viz/mapping.py in <module>()
     25 from matplotlib.collections import LineCollection, PathCollection, PolyCollection, PathCollection, PatchCollection, CircleCollection
     26 
---> 27 from .color import get_color_map
     28 
     29 try:

/usr/lib/python3/dist-packages/pysal/contrib/viz/color.py in <module>()
      3 """
      4 
----> 5 import palettable as pltt
      6 
      7 

ModuleNotFoundError: No module named 'palettable'

comment:2 by Bas Couwenberg, 5 years ago

palettable is not packaged, and there is no RPF nor ITP.

If you want this to work, someone will need to package this module.

comment:3 by darkblueb, 5 years ago

what about just pysal.contrib.viz.color ?

yes, pysal.contrib.viz.mapping appears to be no longer on the roadmap for pysal ? low-priority

comment:4 by Bas Couwenberg, 5 years ago

pysal.contrib.viz.color was part of PySAL 1.x, but has been removed in 2.0.0.

comment:5 by darkblueb, 5 years ago

Resolution: wontfix
Status: newclosed

ok, thx for looking

Note: See TracTickets for help on using tickets.