Skip to content

Added code for plotting PIGs#23

Merged
MatthiasRoelsPython merged 2 commits intomasterfrom
feature/plot_pig
Dec 22, 2020
Merged

Added code for plotting PIGs#23
MatthiasRoelsPython merged 2 commits intomasterfrom
feature/plot_pig

Conversation

@JanBenisek
Copy link
Copy Markdown
Contributor

@JanBenisek JanBenisek commented Dec 18, 2020

I added feature to plot PIGs & one small test to test it.

It is a simple function, with possibility to specify an order of x-axis.

Now I am not sure whether it is in the correct file - pigs_tables.py and not plotting_utils.py.
Let me know what you think.

(after, documentation should be updated)

PEP-8 naming convention for functions and class methods
states that names should be in snake case (with underscore chars).
So plotIncidence should be plot_incidence.

Note that the former is used a lot amongst web developers (Flask apps,
Django apps, ...)
Copy link
Copy Markdown
Contributor

@MatthiasRoelsPython MatthiasRoelsPython left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I only changed the name plotIncidence to plot_incidence to comply with PEP-8 which is used throughout cobra.

@MatthiasRoelsPython MatthiasRoelsPython merged commit 002bc57 into master Dec 22, 2020
@MatthiasRoelsPython MatthiasRoelsPython deleted the feature/plot_pig branch December 22, 2020 08:51
JanBenisek added a commit that referenced this pull request Jan 4, 2021
Added short description and code of the PIG plotting function.
JanBenisek added a commit that referenced this pull request Jan 4, 2021
Small change (tab space)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants