Skip to content

Commit

Permalink
Add map name to plots
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBodine committed Feb 19, 2024
1 parent 7d7ceb8 commit e8cba92
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions utils/Substrate_Summaries/05_gen_summary_shp_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
'CHU': '[PAS Basin]'
}

substrateOutput = 'EGN'
substrateOutput = 'Raw'
csvDir = '04_Substrate_Shps_Summary_All_Plots'
outDir = '04_Substrate_Shps_Summary_All_Plots'

# topDir = r'E:\SynologyDrive\GulfSturgeonProject\SSS_Data_Processed\Substrate_Summaries'
topDir = r'S:\GulfSturgeonProject\SSS_Data_Processed\Substrate_Summaries'
topDir = r'E:\SynologyDrive\GulfSturgeonProject\SSS_Data_Processed\Substrate_Summaries'
# topDir = r'S:\GulfSturgeonProject\SSS_Data_Processed\Substrate_Summaries'
csvDir = os.path.join(topDir, csvDir, substrateOutput)
outDir = os.path.join(topDir, outDir, substrateOutput)

Expand Down Expand Up @@ -271,7 +271,7 @@ def makeDepRKMAreaPlot(df, out, length):
p9.theme(legend_title=p9.element_blank())+\
p9.ylim(-10, 0)+\
p9.facet_grid('river_code+basin~.') +\
p9.ggtitle(title+" km Reach Summary")
p9.ggtitle(substrateOutput+': '+title+" km Reach Summary")

p9.ggsave(gg, out, dpi=300)
return
Expand Down Expand Up @@ -307,7 +307,7 @@ def makeDepRKMBoxPlot(df, out):
p9.geom_errorbar(p9.aes(x='RKM', ymin='dep_m_whisklo', ymax='dep_m_whiskhi'), width=w, colour='royalblue', alpha=0.75, data=df)+\
p9.ylim(0, 10)+\
p9.facet_grid('river_code+basin~.')+\
p9.ggtitle(title+" km Reach Summary")
p9.ggtitle(substrateOutput+': '+title+" km Reach Summary")

p9.ggsave(gg, out, dpi=300)

Expand Down Expand Up @@ -346,7 +346,7 @@ def makeWidRKMAreaPlot(df, out, length):
p9.scale_fill_identity(guide='legend', name='Quantiles', breaks=['darkgrey', 'olivedrab'], labels=['98% Quantile', '50% Quantile'])+\
p9.theme(legend_title=p9.element_blank())+\
p9.facet_grid('river_code+basin~.') +\
p9.ggtitle(title+" km Reach Summary")
p9.ggtitle(substrateOutput+': '+title+" km Reach Summary")

p9.ggsave(gg, out, dpi=300)
return
Expand Down Expand Up @@ -380,7 +380,7 @@ def makeWidRKMBoxPlot(df, out, length):
p9.geom_crossbar(p9.aes(x='RKM', y='width_q2', ymin='width_q1', ymax='width_q3'), width=w, colour='olivedrab', data=df)+\
p9.geom_errorbar(p9.aes(x='RKM', ymin='width_whisklo', ymax='width_whiskhi'), width=w, colour='olivedrab', alpha=0.75, data=df)+\
p9.facet_grid('river_code+basin~.')+\
p9.ggtitle(title+" km Reach Summary")
p9.ggtitle(substrateOutput+': '+title+" km Reach Summary")

p9.ggsave(gg, out, dpi=300)

Expand Down Expand Up @@ -414,7 +414,7 @@ def makeSinRKMLinePlot(df, out, length):
p9.labels.ylab('Sinuosity')+\
p9.geom_line(p9.aes(x='RKM', y='sinuosity'), colour='darkorchid', data=df)+\
p9.facet_grid('river_code+basin~.')+\
p9.ggtitle(title+" km Reach Summary")
p9.ggtitle(substrateOutput+': '+title+" km Reach Summary")

p9.ggsave(gg, out, dpi=300)

Expand Down

0 comments on commit e8cba92

Please sign in to comment.