Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [PlotlyJS] Legend not showing when setting PlotTitle attribute #4846

Open
MrHenning opened this issue Nov 17, 2023 · 1 comment
Open
Labels

Comments

@MrHenning
Copy link
Contributor

Details

When I set the plot_title attribute, the plot-legend does not show anymore.

Expected:

scatter(
	1:.1:2,
	(1:.1:2).^-2,
	label="2",
	color=:Red,
	# plot_title="test",
	legend=true,
)

newplot - 2023-11-17T094335 998

Observed:

scatter(
	1:.1:2,
	(1:.1:2).^-2,
	label="2",
	color=:Red,
	plot_title="test",
	legend=true,
)

newplot - 2023-11-17T094646 941

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version:
Backend version (]st -m <backend(s)>) Used in Pluto Notebook:

PlotlyJS v0.18.11
is installed in the notebook.

Output of versioninfo():

Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 64 × AMD Ryzen Threadripper PRO 3975WX 32-Cores
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, znver2)
Threads: 32 on 64 virtual cores
Environment:
JULIA_SSL_NO_VERIFY_HOSTS = gitlab.picoseq.org
JULIA_DEPOT_PATH = /home/depixus/.julia:/opt/julia-1.9.3/local/share/julia:/opt/julia-1.9.3/share/julia
JULIA_PROJECT = /home/depixus/PlutoForBio
LD_GOLD = /home/depixus/miniconda3/envs/trackanalysis/bin/x86_64-conda-linux-gnu-ld.gold
JULIA_LOAD_PATH = @:@v#.#:@StdLib
JULIA_REVISE_WORKER_ONLY = 1

@MrHenning MrHenning added the bug label Nov 17, 2023
@BioTurboNick
Copy link
Member

BioTurboNick commented Jan 17, 2025

Oddly I've just seen the reverse - setting plot_title causes legend = :none to be ignored. (Workaround: set plot_title in an earlier call to plot!, then set the legend in a subsequent one.) I imagine it's related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants