0

When setting parameters for a table using matplotlib, what is the difference between these two naming functions. I initially thought plt.xlabel was used for functional naming and .set_xlabel was used for object oriented naming but Im now confused

  • What specifically has caused you to be confused? – BigBen Feb 03 '22 at 18:13
  • When is each one used. For example, is .set_xlabel used only for data frame objects? What are the use cases of each and how do they differ – Rishab Patil Feb 03 '22 at 18:25
  • 2
    I'm not sure why you're asking about dataframes (pandas is not matplotlib), but it might help to read about the [Pyplot vs. Object-Oriented interface](https://matplotlib.org/matplotblog/posts/pyplot-vs-object-oriented-interface/). – BigBen Feb 03 '22 at 18:27

0 Answers0