Browse Source

plot: replacing sloppy fix with more reasonable way of guessing gnuplot options

  This fixes an error introduced in the recent commit
  09886e4f828ca01540c157c4b7f3ec47be21a5e5
Eric Schulte 15 năm trước cách đây
mục cha
commit
ff00e36aac
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lisp/org-plot.el

+ 1 - 2
lisp/org-plot.el

@@ -251,8 +251,7 @@ manner suitable for prepending to a user-specified script."
 		       (cons
 			(format plot-str data-file
 				(or (and ind (> ind 0)
-                                         (not (or (equal 'histograms (plist-get params :with))
-                                                  (equal 'hist (plist-get params :with))))
+                                         (not text-ind)
                                          (format "%d:" ind)) "")
 				(+ 1 col)
 				(if text-ind (format ":xticlabel(%d)" ind) "")