Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The resultify.py file - secondary electricity plot #63

Open
EmiFej opened this issue Jul 3, 2023 · 0 comments
Open

The resultify.py file - secondary electricity plot #63

EmiFej opened this issue Jul 3, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@EmiFej
Copy link
Contributor

EmiFej commented Jul 3, 2023

I found that in row 303 of the resultify.py script, there is a reference back to the pe.plot (primary energy) plot in the se (secondary energy) plot.

        se = df.filter(**args, variable='Secondary Energy|Electricity|*', region=region)
        if se:
            locator = mdates.AutoDateLocator(minticks=10)
            #locator.intervald['YEARLY'] = [10]
            pe.plot.bar(ax=ax, stacked=True, title='Power generation mix %s' % region)

In contrast the plot for primary energy looks like this

        pe = df.filter(**args, variable='Primary Energy|*', region=region)
        if pe:
            locator = mdates.AutoDateLocator(minticks=10)
            #locator.intervald['YEARLY'] = [10]
            pe.plot.bar(ax=ax, stacked=True, title='Primary energy mix %s' % region)

Should row 303 be changed to se.plot instead of pe.plot?

@EmiFej EmiFej added the question Further information is requested label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants