Skip to content

Commit c4f5ce3

Browse files
authored
fix colors (#131)
* update colors * docs
1 parent dd06aab commit c4f5ce3

File tree

6 files changed

+23
-27
lines changed

6 files changed

+23
-27
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM python:${PYTHON_VERSION}-bookworm AS base
33

44
WORKDIR /starplot
55

6-
# Install required system libraries (GEOS + GDAL)
7-
RUN apt-get clean && apt-get update -y && apt-get install -y libgeos-dev libgdal-dev
8-
96
# ---------------------------------------------------------------------
107
FROM base AS dev
118

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- Adds a new field to the constellation model: `star_hip_ids` which is a list of hip ids for stars that make up the lines in the constellation
88
- Dropped support for Python 3.9 (Ibis requires 3.10 or higher)
99
- Increased minimum required version of GeoPandas to `1.0.1`
10+
- [**v0.15.1**] Fixes bug with build script that prevented starplot data from being included in the distribution
11+
- [**v0.15.2**] Fixes a few colors in the dark blue and blue gold style extensions
1012

1113
## v0.14.x
1214
[Documentation](https://archives.starplot.dev/0.14.0/)

docs/installation.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
1-
Starplot is available on [PyPI](https://pypi.org/project/starplot/), but it's basically just a thin layer on top of [Matplotlib](https://matplotlib.org/stable/), [Skyfield](https://github.com/skyfielders/python-skyfield), [Cartopy](https://scitools.org.uk/cartopy/docs/latest/), and others. So, before installing Starplot you'll need a few dependencies. Below are instructions for installing on macOS and Linux.
1+
Starplot is available on [PyPI](https://pypi.org/project/starplot/), and its dependencies have binary wheels for most operating systems, so installation should be easy via pip. See below for details.
22

33
Supported Python versions: 3.10 / 3.11 / 3.12
44

5-
Required Dependencies: [GEOS](https://libgeos.org/), [GDAL](https://gdal.org/)
5+
## macOS / Linux
66

7-
## macOS / Linux (debian)
8-
9-
1. **Install required system libraries**
10-
11-
macOS (via [Homebrew](https://brew.sh/)):
12-
```
13-
brew install geos gdal
14-
```
15-
16-
Linux (debian):
17-
```
18-
apt-get install libgeos-dev libgdal-dev
19-
```
20-
21-
2. **Install Starplot:**
7+
1. **Install Starplot:**
228
```
239
pip install starplot
2410
```
2511

26-
3. (optional) **Setup Starplot:**
12+
2. (optional) **Setup Starplot:**
2713
```
2814
starplot setup --install-big-sky
2915
```
@@ -36,9 +22,6 @@ Here's a basic Docker container definition that'll get you up and running:
3622
```docker
3723
FROM python:3.11.11-bookworm
3824
39-
# Install required system libraries (GEOS + GDAL)
40-
RUN apt-get clean && apt-get update -y && apt-get install -y libgeos-dev libgdal-dev
41-
4225
RUN pip install starplot
4326
RUN starplot setup --install-big-sky # Optional
4427
```
@@ -51,10 +34,22 @@ RUN starplot setup --install-big-sky # Optional
5134

5235
## Troubleshooting
5336

37+
### GEOS / GDAL errors on installation
38+
39+
If you see any errors related to GEOS and/or GDAL when trying to install Starplot, then you may need to build those dependencies from source for your environment.
40+
41+
See their websites for details:
42+
43+
- [GEOS](https://libgeos.org/)
44+
- [GDAL](https://gdal.org/)
45+
5446
### Segmentation Fault with map plots
5547

5648
If you're seeing "segmentation fault" errors when creating map plots, you may have to install [shapely](https://shapely.readthedocs.io/en/stable/index.html) from source for your runtime environment:
5749
```
5850
pip install --no-binary :all: shapely
5951
```
6052
*Warning: this may take awhile (5+ minutes), because it builds shapely from source.*
53+
54+
55+
<br/><br/><br/>

src/starplot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Star charts and maps of the sky"""
22

3-
__version__ = "0.15.1"
3+
__version__ = "0.15.2"
44

55
from .base import BasePlot # noqa: F401
66
from .map import MapPlot, Projection # noqa: F401

src/starplot/styles/ext/blue_dark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ border_line_color: hsl(209, 38%, 50%)
99

1010
horizon:
1111
line:
12-
color: hsl(209, 50%, 20%)
12+
color: hsl(209, 60%, 13%)
1313
edge_color: hsl(209, 38%, 50%)
1414
label:
1515
font_color: hsl(209, 56%, 86%)

src/starplot/styles/ext/blue_gold.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ ecliptic:
4848
alpha: 0.9
4949

5050
planets:
51+
label:
52+
font_color: hsl(284, 78%, 90%)
5153
marker:
5254
alpha: 1
53-
color: hsl(37, 78%, 80%)
55+
color: hsl(284, 80%, 80%)
5456
fill: full
5557
milky_way:
5658
alpha: 0.14

0 commit comments

Comments
 (0)