Gaston: fix polar ticks

This commit is contained in:
t-bltg 2021-08-01 18:03:44 +02:00 committed by GitHub
parent 670fba56a7
commit c6d9332cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ function _before_layout_calcs(plt::Plot{GastonBackend})
plt.o.layout = gaston_init_subplots(plt, sps) plt.o.layout = gaston_init_subplots(plt, sps)
# Then add the series (curves in gaston) # Then add the series (curves in gaston)
for (s, series) enumerate(plt.series_list) for series plt.series_list
gaston_add_series(plt, series) gaston_add_series(plt, series)
end end
@ -392,7 +392,7 @@ function gaston_parse_axes_args(
rmin, rmax = axis_limits(sp, :y, false, false) rmin, rmax = axis_limits(sp, :y, false, false)
rticks = get_ticks(sp, :y) rticks = get_ticks(sp, :y)
if (ttype = ticksType(rticks)) == :ticks if (ttype = ticksType(rticks)) == :ticks
gaston_ticks = String[string(t) for (t, l) zip(rticks...)] gaston_ticks = string.(ticks)
elseif ttype == :ticks_and_labels elseif ttype == :ticks_and_labels
gaston_ticks = String["'$l' $t" for (t, l) zip(rticks...)] gaston_ticks = String["'$l' $t" for (t, l) zip(rticks...)]
end end