All Questions
Tagged with legend python-3.x
93
questions
1
vote
0
answers
93
views
Optimize display for diagrams with matplotlib
I use Python 3.43 and Matplotlib 1.5.0.
I created a small example:
# -*- coding: utf-8 -*-
import matplotlib
matplotlib.use("Qt5Agg")
matplotlib.use("Svg")
import matplotlib.pyplot as plt
txts = ['...
5
votes
1
answer
6k
views
How do I show legend for different colors in bokeh scatter plot?
This is my plot.
I need to show the legend for the different colors used.
How do I do that?
My code for the plot:
def mscatter(p, x, y, c,typestr,source):
p.scatter(x, y, marker=typestr,
...
0
votes
1
answer
651
views
Empty square for legend for stackplot
I'm trying to generate a stack plot of version data using matplotlib. I have that portion working and displaying properly, but I'm unable to get the legend to display anything other than an empty ...