
arifshaikh.astro
2021-10-20 12:51:17
Hi, is there an example on how to create a style file for plot
so that I can set my defaults like fontsize, colors, plot-width and so on in an external file and just load that at the top of the current file?

ben
2021-10-20 16:11:38
Here’s a kind of style file. It sets a plot parameter: #lang racket/base
(require plot/no-gui)
(line-width 10)
You can use it by requiring it (require "style.rkt")
. After that, plots should have thicker lines.
All the plot parameters are listed here: https://docs.racket-lang.org/plot/params.html

arifshaikh.astro
2021-10-20 16:51:07
nice. thanks