Python Forum
Add label to matplotlib function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add label to matplotlib function
#3
EDIT: Sorry, didn't think to put the original error: No handles with labels found to put in legend.

Thank you!

First it wouldn't work with:

my_plotter(ax, data1, data2, {'marker': 'x', 'label': one})
NameError: name 'one' is not defined

I changed one for 'randomplot', now it shows up great!

Thanks a lot!
Reply


Messages In This Thread
Add label to matplotlib function - by Pedroski55 - Sep-23-2020, 12:20 AM
RE: Add label to matplotlib function - by scidam - Sep-23-2020, 12:34 AM
RE: Add label to matplotlib function - by Pedroski55 - Sep-23-2020, 12:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,271 Mar-11-2021, 10:52 AM
Last Post: buran
  Use Function in Tkinter Label bigfatgreedykat 0 2,683 Jan-10-2018, 10:03 AM
Last Post: bigfatgreedykat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020