Skip to content

Commit f6e2e18

Browse files
committed
feat: Changing default plot library to matplotlib
1 parent 0583c8e commit f6e2e18

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crawlplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def hide_tick_marks(self, ax, tick_color='#FFFFFF'):
204204
def __init__(self):
205205
"""Initialize the plot with library selection and output directory setup."""
206206
# Settings defined via environment variables
207-
self.PLOTLIB: PlotLibType = os.environ.get('PLOTLIB', 'rpy2.ggplot2')
207+
self.PLOTLIB: PlotLibType = os.environ.get('PLOTLIB', 'matplotlib')
208208
self.PLOTDIR = os.environ.get('PLOTDIR', 'plots')
209209

210210
if self.PLOTLIB == 'ggplot':

stats.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ COPY *.sh ./
3939
COPY *.py ./
4040
COPY _config.yml ./
4141

42-
# Set PYTHONPATH environment variable
42+
# Set environment variables
4343
ENV PYTHONPATH=/app
4444

45+
# Supported plotlibs: matplotlib, rpy2.ggplot2, ggplot (partially deprecated)
46+
ENV PLOTLIB=matplotlib
47+
4548
# ggplot2 is already installed via r-cran-ggplot2 system package above
4649

4750
# Default command

0 commit comments

Comments
 (0)