Skip to content
hannah edited this page Jul 4, 2016 · 28 revisions

GSOC NOTES:

Use the unit framework to convert the data into categorical numbers Enhance the unit framework to be more dynamic

Categorical ToDo

Close out PR:

  1. remove old str tests: tests_units_string_tests (don't need anymore)

  2. change name to StrCategoryConvertor, category.py

  3. explicitly register all string types on 2 and 3 and throw from future import up top

  4. remove .use('agg') from tests

  5. make empty list in axis init

  6. uses axis_init dict to convert single value

  7. update axis_unit & rerender - can't change original order

  8. make image test

ax.plot(['a','b'])
ax.plot(['a', 'b', 'c'])
ax.plot(['b', 'c', 'd'])
  1. categorical colors

  2. sorted categories

  3. hierarchical categories

  4. mouseover report label by snapping to nearest one

  5. Clean up docs and write examples following code guide, can use blog posts as basis,

Other

  • scatter plot legend needs background

  • Py3.5 dict - matplotlib.cbook - index_of

    • write asSequence wrapper over np.asarray in cbook, factor out np.asarray and replace with asSequence
  • Enum (convertor)

  • Support for pd.series category (look at support for regular series type) - this is a PR to Pandas

misc notes:

build: export MPLLOCALFREETYPE=1 (& update docs)

Python Framework Bug: pythonw -m "nose" test_categorical.py

labels only exist after rendering (fig.canvas.draw(), plt.draw(), plt.show())

Clone this wiki locally