-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
I want to plot 3 data sets on one figure from a jupyter notebook.
Two bar graphs first and then a scatter plot on top of this.
In the final figure the scatter plot data is hidden behind the bars, even though
I add it last. The "y3" label in the legend also appears on the top,
indicating it gets processed first?
w = 0.9
w2 = 0.4
x = 1:3
y1 = [1,2,3]
y2 = [2,2,2]
y3 = [2,3,1]
fig = plt[:figure]()
plt[:bar](x.-(w/2), y1, log=true, width=w, color="#BFBFBF", label="y1")
plt[:bar](x.-(w2/2), y2, log=true, width=w2, color="k", label="y2")
plt[:scatter](x, y3, color="orange", edgecolors="k",s=40, label="y3")
legend()Metadata
Metadata
Assignees
Labels
No labels