emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-plot line colors


From: TEC
Subject: Re: org-plot line colors
Date: Sun, 13 Dec 2020 23:45:51 +0800
User-agent: mu4e 1.4.13; emacs 27.1

Hi Ian,

Sorry for the slow response, I'm marked your email though, so I'm now
getting back to you :)

ian martins <ianxm@jhu.edu> writes:

> I wanted to change line colors but didn't find a way. Is there a way?

Indeed! Though I do it with lisp, and using my patches.

I think I saw a patch about multiline #+plot / set but I forget (ment
to send an email about that actually...).

In case it helps, here's the sort of thing I have:

#+begin_src emacs-lisp
(defun org-plot/generate-theme (_type)
  "Use the current Doom theme colours to generate a GnuPlot preamble."
  (format "[...]
set linetype 1 lw 2 lc rgb '%s' # red
set linetype 2 lw 2 lc rgb '%s' # blue
[...]")
  (doom-color 'red)
  (doom-color 'blue))
(setq org-plot/gnuplot-script-preamble #'org-plot/generate-theme)
#+end_src

org-plot/gnuplot-script-preamble can be either a function, or a plain
string.

Regarding the "with lines" bit, I'm not exactly sure what's required to
be changed without looking over my patches again 😅 but I know I added
the capability to adapt the existing plot types quite easily.

If a particular modification seems like a good idea, do feel free to
share 🙂.

Hope that helps a bit,

Timothy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]