Skip to content

Commit 499f50d

Browse files
committed
Fix colorbar call in polarheatmap and tricontour methods
1 parent 8460034 commit 499f50d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/gr/plot.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def plot_data(_figure = true)
909909
draw_polar_axes(1)
910910
draw_polar_axes(2)
911911
kvs[:zrange] = [cmin, cmax]
912-
colorbar
912+
colorbar(0.025)
913913

914914
when :contour, :contourf
915915
zmin, zmax = kvs[:zrange]
@@ -1061,6 +1061,7 @@ def plot_data(_figure = true)
10611061
zmin, zmax = kvs[:zrange]
10621062
levels = linspace(zmin, zmax, 20)
10631063
GR.tricontour(x, y, z, levels)
1064+
colorbar
10641065

10651066
when :shade
10661067
xform = kvs[:xform] || 5

0 commit comments

Comments
 (0)