summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTEC <tec@tecosaur.com>2021-05-09 23:47:27 +0800
committerTEC <tec@tecosaur.com>2021-05-09 23:49:37 +0800
commit7dd667af6751e7f0926ad123cbd4042b9e49f8f9 (patch)
tree20ce6916ed911f17028dd3bc7138f983313c8715
parent5d2ccdae7fc976a95421153afa1c801f40e6cdd5 (diff)
downloadorg-mode-7dd667af.tar.gz
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.
-rw-r--r--lisp/org-plot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 2659a5f..ddd9f78 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -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)