From a1c8bc9e5eb8557d7cc29d01bbca4e08cbd9c8d5 Mon Sep 17 00:00:00 2001 From: Steve Berardi Date: Mon, 22 Dec 2025 06:34:47 -0800 Subject: [PATCH] fix --- .gitignore | 1 + docs/reference-styling.md | 34 +++++++++++++++++----------------- mkdocs.yml | 4 +--- requirements-dev.txt | 2 +- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 1bb2f2d6..5e92da1b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ duckdb-extensions # Sky Object Database # ignore this because it's large and created on release sky.db +*.parquet # Data Folder data/build/* diff --git a/docs/reference-styling.md b/docs/reference-styling.md index d7665ff7..ff7223ec 100644 --- a/docs/reference-styling.md +++ b/docs/reference-styling.md @@ -155,29 +155,29 @@ After you create a plot instance and start plotting stuff (e.g. stars, DSOs, etc ### Via `style` kwarg {.mt-none} All plotting functions have an optional `style` kwarg that lets you pass in a dictionary of any styles you want to override for that plotting call. For example, here's how you can plot bright stars with a different marker and color than the plot's style: - ```python - p.stars( - where=[_.magnitude < 3], - style={ - "marker": { - "symbol": "star", - "color": "red", - } +```python +p.stars( + where=[_.magnitude < 3], + style={ + "marker": { + "symbol": "star", + "color": "red", } - ) - ``` + } +) +``` ### Via `style__*` kwargs When you only want to override one or two style properties, it can be tedious to create a dictionary, so Starplot also lets you specify overrides through keyword arguments that start with `style__` and separate each level by `__`. For example, we could re-write the previous example like this: - ```python - p.stars( - where=[_.magnitude < 3], - style__marker__symbol="star", - style__marker__color="red", - ) - ``` +```python +p.stars( + where=[_.magnitude < 3], + style__marker__symbol="star", + style__marker__color="red", +) +``` **When overriding styles like this, you only have to define style properties you want to override.** Other properties will be inherited from the plot's style. diff --git a/mkdocs.yml b/mkdocs.yml index a09d87c8..0028745f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -91,14 +91,12 @@ markdown_extensions: - tables - pymdownx.highlight: anchor_linenums: true - line_spans: __span - pygments_lang_class: true - pymdownx.inlinehilite - pymdownx.snippets - pymdownx.superfences - pymdownx.details - pymdownx.tabbed: - alternate_style: true + alternate_style: true - pymdownx.emoji: emoji_index: !!python/name:material.extensions.emoji.twemoji emoji_generator: !!python/name:material.extensions.emoji.to_svg diff --git a/requirements-dev.txt b/requirements-dev.txt index a7b1c7bd..db0fe1c8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -12,7 +12,7 @@ mkdocs-glightbox==0.4.0 griffe==1.5.4 ruff==0.0.282 ipython==7.12.0 -pygments==2.19.1 +pygments==2.19.2 rich==13.9.4 snakeviz==2.2.2 marimo==0.15.2