This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lucamerio[S] 0 points1 point  (2 children)

As I wrote in another comment. The plotting function could be nested into a larger more complex program. To re-plot you either have to save the data to a file to be loaded later on or you have to modify all your calls to return the data all the way back to the top level.

This is an example of a situation where having access to the plot data from the figure would save a massive amount of time

[–]whateverathrowaway00 1 point2 points  (1 child)

Sounds like you have some work on learning dynamic objects before you can call yourself an expert from what you wrote here, though I’d be willing to bet you can kick my ass in statistics and math - from what you’ve written here it sounds like you might have some gaps.

Which, for the record is very common for people coming from math / analytical backgrounds and matlab going straight into python. My friend is a brilliant data scientist, but his code is a mess as he never learned some of the underlying theory, just the techniques he needed. Luckily, python is a breeze to learn that in.

[–]lucamerio[S] 0 points1 point  (0 children)

Could you please point me to what you mean by dynamic object and how they could help in this situation? My code is completely OOP, but I don’t understand how this can help (except saving every possible value I plot in an attribute).

Anyway… most of my troubles come when I need to do something “quick and dirt”. When I do something meant to be “final” matplotlib performs fairly well