Skip to content

Commit

Permalink
[FIX] title font, add ylabel in plotPredictions
Browse files Browse the repository at this point in the history
  • Loading branch information
hollydinkel committed Aug 14, 2024
1 parent 66f7424 commit b742421
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified images/gom_isp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/iqps_isp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/kleos_isp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/planet_isp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/satellogic_isp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def plotKPIs(fig, ax, data, key, companyMetadata, company, ylabel):
return fig

def plotPredictions(fig, ax, time, prediction, companyMetadata, company):
plt.title(company, fontsize=16)
ax.set_title(company, fontsize=16, fontweight='bold')
ax.tick_params(axis='both', which='major', labelsize=16)
ax.set_xlabel('Year', fontsize=16)
ax.set_ylabel('Revenue', fontsize=16)
ax.set_ylabel('Revenue ($ USD)', fontsize=16)
ax.xaxis.set_major_locator(ticker.MaxNLocator(nbins=5))
ax.yaxis.set_major_locator(ticker.MaxNLocator(nbins=5))
company_color = np.array(companyMetadata[company]["color"]) / 255
Expand Down

0 comments on commit b742421

Please sign in to comment.