1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-26 07:33:39 +00:00

org-plot: Use labels with 2d histogram plot

* lisp/org-plot.el (org-plot/preset-plot-types): When the :with
parameter is histograms, use text indices as the x-values.
This commit is contained in:
TEC 2021-05-09 23:47:27 +08:00
parent 5d2ccdae7f
commit 7dd667af67
No known key found for this signature in database
GPG Key ID: 779591AFDB81F06C

View File

@ -309,7 +309,8 @@ the argument, and must return a string to be used."
(with (if (eq type 'grid) 'pm3d (plist-get params :with)))
(ind (plist-get params :ind))
(deps (if (plist-member params :deps) (plist-get params :deps)))
(text-ind (plist-get params :textind))
(text-ind (or (plist-get params :textind)
(eq (plist-get params :with) 'histograms)))
(col-labels (plist-get params :labels))
res)
(dotimes (col num-cols res)