Skip to content

Instantly share code, notes, and snippets.

@jurand71
Created January 11, 2023 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurand71/065c7ea4af49394911ce344f7193254a to your computer and use it in GitHub Desktop.
Save jurand71/065c7ea4af49394911ce344f7193254a to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
df = pd.read_csv('PL_GEN_WIATR_PV_2022.csv')
from bokeh.io import output_file, output_notebook
from bokeh.plotting import figure, show
output_file('images/bokeh_gzfw2022.html', title='Generacja źródeł fotowoltaicznych i wiatrowych')
fig_name = 'Ilość energii wytwarzanej ze źródeł fotowoltaicznych i wiatrowych w 2022 roku'
img = figure(title=fig_name,
x_axis_type='datetime',
tools='xpan,wheel_zoom,box_zoom,save,reset',
toolbar_location='below'
)
line_pv = img.line(df.index, df['Generacja źródeł fotowoltaicznych'],
color='green', line_width=1, legend_label='Generacja ze źródeł fotowoltaicznych')
line_wind = img.line(df.index, df['Generacja źródeł wiatrowych'],
color='orange', line_width=1, legend_label='Generacja ze źródeł wiatrowych')
img.yaxis.axis_label='MWh'
show(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment