lecture-julia.myst icon indicating copy to clipboard operation
lecture-julia.myst copied to clipboard

20.5.3: "keyword argument hover not supported with Plots.GRBackend()"

Open jbrightuniverse opened this issue 3 years ago • 6 comments

image

┌ Warning: Keyword argument hover not supported with Plots.GRBackend().  Choose from: Set([:top_margin, :group, :inset_subplots, :background_color, :ytickfontsize, :yforeground_color_text, :yguidefontcolor, :tickfontfamily, :show_empty_bins, :seriesalpha, :seriescolor, :ztick_direction, :xgrid, :ygridalpha, :zlims, :xtick_direction, :colorbar, :legend_font_family, :zflip, :ticks, :linealpha, :overwrite_figure, :arrow, :xguidefonthalign, :normalize, :linestyle, :xtickfontvalign, :xflip, :zgrid, :fillcolor, :ygrid, :bar_width, :colorbar_scale, :background_color_inside, :zguidefonthalign, :bins, :zguide, :zforeground_color_text, :legend_font_valign, :yscale, :legend_font_color, :weights, :xgridalpha, :ygridstyle, :clims, :xtickfontcolor, :fill_z, :xguide, :markershape, :background_color_subplot, :ztickfontfamily, :fillalpha, :markerstrokewidth, :tick_direction, :xguidefontvalign, :xguidefontfamily, :gridlinewidth, :foreground_color_subplot, :xgridlinewidth, :yguidefontsize, :foreground_color, :foreground_color_text, :titlefonthalign, :yerror, :x, :xtickfonthalign, :zgridlinewidth, :ytickfontrotation, :discrete_values, :ytick_direction, :grid, :xguidefontrotation, :ribbon, :xguidefontsize, :tickfontrotation, :xforeground_color_axis, :xdiscrete_values, :background_color_outside, :titlefontcolor, :xgridstyle, :line_z, :size, :orientation, :gridstyle, :projection, :markersize, :legend_foreground_color, :camera, :zguidefontrotation, :ydiscrete_values, :xforeground_color_grid, :seriestype, :yflip, :quiver, :zticks, :markerstrokecolor, :ztickfontrotation, :ztickfonthalign, :fillrange, :ztickfontvalign, :xlims, :xforeground_color_border, :markercolor, :xtickfontsize, :ylink, :levels, :color_palette, :connections, :yforeground_color_grid, :lims, :zgridstyle, :foreground_color_border, :zguidefontvalign, :xscale, :marker_z, :markerstrokealpha, :left_margin, :markeralpha, :legend_font_halign, :annotations, :window_title, :tickfontvalign, :foreground_color_axis, :zguidefontcolor, :ygridlinewidth, :zlink, :zscale, :smooth, :yguidefontrotation, :xticks, :guidefontsize, :zguidefontsize, :y, :margin, :ytickfontcolor, :zdiscrete_values, :tickfonthalign, :bottom_margin, :yforeground_color_border, :zguidefontfamily, :framestyle, :yguidefontvalign, :yguidefonthalign, :zerror, :zgridalpha, :ztickfontcolor, :scale, :legend_position, :linecolor, :html_output_format, :legend_title, :zforeground_color_border, :legend_font_pointsize, :title, :tickfontcolor, :subplot_index, :flip, :titlefontrotation, :legend_background_color, :tickfontsize, :titlefontvalign, :z, :yforeground_color_axis, :foreground_color_grid, :xtickfontrotation, :linewidth, :ztickfontsize, :gridalpha, :xerror, :guidefontfamily, :ylims, :contour_labels, :xguidefontcolor, :primary, :xtickfontfamily, :ytickfontvalign, :guidefonthalign, :ytickfontfamily, :aspect_ratio, :xforeground_color_text, :show, :link, :colorbar_title, :guidefontrotation, :subplot, :label, :ytickfonthalign, :guide, :guidefontcolor, :yguide, :titlefontsize, :titlefontfamily, :guidefontvalign, :zforeground_color_axis, :zforeground_color_grid, :layout, :legend_font_rotation, :colorbar_entry, :yguidefontfamily, :polar, :right_margin, :xlink, :series_annotations, :yticks])
└ @ Plots /home/runner/.julia/packages/Plots/Xv2qA/src/args.jl:1607

Not entirely sure where in the code this keyword is being triggered.

jbrightuniverse avatar Jan 31 '22 19:01 jbrightuniverse

As far as I can tell, hover first appears here: https://github.com/JuliaPlots/StatsPlots.jl/blob/master/src/boxplot.jl @jlperla I'm not entirely sure if there's a workaround right now (other than just suppressing/ignoring the warning since it doesn't do anything).

jbrightuniverse avatar Jan 31 '22 20:01 jbrightuniverse

So this is not somehting we are doing, but rather is a bug in the GR versions (and we are at the most recent GR and Plots versions? If so, then not much we can do? Maybe we can just add in the jupyterbook tag to remove the output of the cell or something like that? If we have to leave it, then so be it.

jlperla avatar Jan 31 '22 20:01 jlperla

@jlperla warning persists after using most recent versions; I don't think the tag will work because the output plot is attached to the warning so maybe the best solution for now is indeed to leave it.

jbrightuniverse avatar Feb 01 '22 06:02 jbrightuniverse

Sounds good. Maybe post an issue in the Plots repo and then we can revisit if they close it?

jlperla avatar Feb 01 '22 07:02 jlperla

@jlperla Upon further inspection, this is the responsibility of StatsPlots.jl, and they apparently encountered this before and don't plan on patching it: https://github.com/JuliaPlots/StatsPlots.jl/issues/470

More recently they mentioned something about patching it for a different notebook platform so I'm not sure if they've changed their approach.

jbrightuniverse avatar Feb 01 '22 09:02 jbrightuniverse

Ugh. StatsPlots...

Not much we can do but subscribe to that issue to see if it gets fixed and push out the change after Plots changes

jlperla avatar Feb 01 '22 15:02 jlperla