Skip to content

Commit 34dee11

Browse files
committed
fix: use show()
1 parent d9c2901 commit 34dee11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

portal/metrics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def plot_projects_this_year(PORTAL_ID, FOUNDATIONS_ID, COOKBOOKS_ID):
162162
plt.legend(fontsize=12, loc='upper right')
163163
164164
plt.xlabel('Date', fontsize=12)
165-
plt.savefig('portal/metrics/thisyear.png', bbox_inches='tight')
165+
plt.show()
166166
167167
```
168168
This line plot displays active users for our 3 Pythia projects (Portal in purple, Foundations in blue, and Cookbooks in salmon) since January 1st of the current year.
@@ -239,7 +239,7 @@ def plot_top_pages(PORTAL_ID, FOUNDATIONS_ID, COOKBOOKS_ID):
239239
ax.set_xlabel('Page Views', fontsize=12)
240240
241241
plt.legend(fontsize=12, loc='lower right')
242-
plt.savefig('portal/metrics/toppages.png', bbox_inches='tight')
242+
plt.show()
243243
```
244244
This bar-chart displays the top 5 pages by project over the life of Project Pythia, as determined by screen page views. Screen page views refers to the number of times users viewed a page, including repeated visits. To learn more visit the [GA4 "API Dimensions & Metrics" page](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema).
245245

@@ -347,7 +347,7 @@ _countries)
347347
ax.text(1.01, 0.5, top_10_text, transform=ax.transAxes, fontsize=12, verticalalignment='center', bbox=props)
348348
349349
plt.tight_layout()
350-
plt.savefig('portal/metrics/bycountry.png', bbox_inches='tight')
350+
plt.show()
351351
```
352352
This map displays the number of active users per country for Pythia Foundations for the entire life of Project Pythia.
353353

0 commit comments

Comments
 (0)