All Questions
4
questions
0
votes
1
answer
295
views
Change the order of the legend in a plot in Pandas
I have been trying to change the order of the legend on a plot in Pandas to get it in the same order as the plot appears:
Screenshot of the code and the plot in Anaconda
As you see, the plots are ...
2
votes
1
answer
790
views
Have the legend correspond to the y values in Pandas/PyPlot
I have a dataframe named "original_filtered_df". I am trying to plot, for each possible pair of values from two columns ("COLOR", "SIZE"), two other columns ("WEIGHT", "HEIGHT") over time ("DATE").
...
78
votes
4
answers
138k
views
Change main plot legend label text
So far I have been able to label the subplots just fine but I'm having an issue with the main one.
Here's the relevant part of my code:
data_BS_P = data[channels[0]]
data_BS_R = data[channels[1]]
...
61
votes
4
answers
106k
views
Is it possible to add a string as a legend item
I am producing some plots in matplotlib and would like to add explanatory text for some of the data. I want to have a string inside my legend as a separate legend item above the '0-10' item. Does ...