Creditas / galeritas

Galeritas is an open library for data visualization.
Apache License 2.0
37 stars 3 forks source link

[Feature Request] Plot within For Loop #4

Closed joaoOarthur closed 2 years ago

joaoOarthur commented 2 years ago

Context

It is not possible to plot the same graph within a for loop (on jupyter).

example:

for some_feature in feature_list:
    stacked_percentage_bar_plot(
        my_df,
        categorical_feature=some_feature,
        hue=target_feature)

Won't produce any plots. Could it be related to having a return fig at the end of each plot function?

Describe your proposed solution

We just need to make sure that at each call for the function a graph is plotted. Should work within a loop or not.

Describe alternatives you've considered

No response

Any other comments?

No response