Skip to content

Colors#7

Merged
andrewheusser merged 16 commits into
masterfrom
colors
Nov 15, 2016
Merged

Colors#7
andrewheusser merged 16 commits into
masterfrom
colors

Conversation

@andrewheusser

Copy link
Copy Markdown
Collaborator

Added color api

-supports seaborn and matplotlib color palettes e.g. palette="Reds"
-supports seaborn styles e.g. style="whitegrid"
-Unlabeled argument can be format string specified as a str, list or tuple. If str, sets all lines to specified style. If list/tuple, must be same length as x, and sets each line to specified value.
-Also accepts any unlabeled argument supported by matplotlib
-Keyword arguments can be str, list or tuple. color kwarg can be specified as a list of mixed types e.g. color=['r',(.2,.4,.6),'#101010']. If list or tuple, must be same length as X. Can also list linestyles e.g. linestyle=[':','--','-'] and markers e.g. marker=['o','*','^']

Comment thread python/plot_coords.py Outdated
from mpl_toolkits.mplot3d import Axes3D
import seaborn as sns

##META##

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this meta info could be removed (it's redundant with info on the github repo). or if we want to keep this, andy's name should be added.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't matter to me, whatever you'd prefer here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we need the meta info...we'll have a credit trail and contact info via github. unless you guys feel strongly i'd say expunge it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i removed the meta data in 86b28ba

Comment thread python/plot_coords.py
iargs = args_list[i]
ikwargs = kwargs_list[i]
ax.plot(data[i][0:half,0], data[i][half:m+1,0], *iargs, **ikwargs)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this function used for? It looks like it plots the first half of the data against the second half...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not actually sure. @KirstensGitHub ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's not used anywhere, we should delete it. and if it is used, we should re-write it to be more intuitive.

@andrewheusser andrewheusser Nov 15, 2016

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is out of the scope of the colors pr, but i'll make an issue to fix this

Comment thread python/readme.md
pip install -e .

(this assumes you have pip installed on your system: https://pip.pypa.io/en/stable/installing/)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some additional instructions needed here on function names (by themselves these descriptions don't make sense)

@andrewheusser andrewheusser Nov 15, 2016

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some (hopefully) clearer instructions and a bunch of example uses

@jeremymanning jeremymanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested a few minor changes below, and that I think should be addressed before we complete the pull into main. But overall this looks great!

@andrewheusser andrewheusser left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how/where do I add seaborn as a dependency?

Comment thread python/plot_coords.py Outdated
from mpl_toolkits.mplot3d import Axes3D
import seaborn as sns

##META##

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't matter to me, whatever you'd prefer here.

Comment thread python/plot_coords.py
iargs = args_list[i]
ikwargs = kwargs_list[i]
ax.plot(data[i][0:half,0], data[i][half:m+1,0], *iargs, **ikwargs)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not actually sure. @KirstensGitHub ?

@jeremymanning

Copy link
Copy Markdown
Member

to add seaborn as a dependency, you can add it to setup.py-- you add the line

install_requires=['numpy', 'scipy', 'seaborn']

under the "py_modules" line

the brain-dynamics-model repo (python folder) has an example if you want to check it out...i'll also upload to slack

@andrewheusser
andrewheusser merged commit efac8cb into master Nov 15, 2016
@andrewheusser
andrewheusser deleted the colors branch December 24, 2016 02:46
jeremymanning added a commit that referenced this pull request Jul 17, 2026
… legacy/kaleido/deps docs

Release-review issues #3-#7, #9:
- #3 (blocker): add dev-1.0/dev-1.0-refactor to pull_request.branches so
  PRs into the 1.0 line (incl. fork PRs) actually run CI -- the green
  matrix was push-triggered only.
- #4: prune tests/screenshots (129 ignored files that graft-tests leaked
  into a 3.5MB sdist) + a packaging test asserting every sdist file is
  git-tracked or in a documented build-metadata allowlist.
- #5: drop the untested Python 3.14 classifier (CI covers 3.10-3.13;
  dependency resolution is not a compiled-stack compatibility test).
- #6: correct the legacy-geo docs -- pickle-format geos (>=0.8) load via
  the shim; pre-0.8 deepdish/HDF5 geos need a one-time numpy<2 conversion
  (with a concrete command); README + CHANGELOG.
- #7: document that kaleido 1.x needs a Chrome/Chromium browser for static
  image export, with a troubleshooting pointer.
- #9: replace the inaccurate 'small base install' wording with an honest
  description (the base pulls the full scientific stack); deps unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jeremymanning added a commit that referenced this pull request Jul 18, 2026
Addresses Jeremy's second release review (2026-07-18). Blocker #1 (sotus
re-host) is code-ready pending its Dropbox upload; everything else lands here.

- #2 (blocker) headless docs build: RTD now provisions a pinned Chrome for
  kaleido (.readthedocs.yaml post_install: plotly_get_chrome), a new
  `docs-clean` CI job builds the docs from a pristine `git archive` with
  `sphinx -W -E -a` (asserting docs/auto_examples is untracked) so a missing
  browser or any gallery-execution failure fails before it reaches RTD, and
  conf.py's fallback comment no longer overstates its coverage (it only
  guards a missing plotly import, not a missing Chrome).
- #3 datasaurus indexes: hyp.load returns raw data, so each frame's original
  contiguous global-row-range index is part of the public result -- restore
  it from an in-package constant (_DATASAURUS_INDEX_STARTS) instead of a
  fresh RangeIndex. Add an immutable compatibility baseline
  (tests/data/rehosted_compat_baseline.json) + equivalence test covering
  every re-hosted dataset (values/index/columns/dtype/ordering), proven
  equal frame-by-frame to the pre-1.0 original.
- #4 trust docstrings: load_source/_parse_payload now state that remote
  unpickling is REFUSED (raises HypertoolsTrustError), not warned.
- #5 changelog: drop "small ... base install"; match the corrected README.
- #6 atomic + concurrency-safe downloads: stream into a private temp file,
  verify its SHA-256, then os.replace into the cache (atomic rename); add a
  best-effort per-dataset filelock. A reader never sees a partial/unverified
  file, and an interrupted download leaves no corrupt cache entry. Real
  thread/atomicity tests added.
- #7 merge strategy: CONTRIBUTING.md documents squash-merge (no history
  rewrite) so the branch's large-binary history never enters dev-1.0.
- #8 sdist smoke: the release-qualification job now installs + smoke-tests
  the sdist in its own fresh venv too, not only the wheel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

3 participants