Removes fontsize scaling
This commit is contained in:
@@ -8,6 +8,12 @@ import geopandas as gpd
|
|||||||
import contextily as cx
|
import contextily as cx
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
|
import seaborn as sns
|
||||||
|
|
||||||
|
sns.set()
|
||||||
|
#sns.set(font_scale=1.5)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = ArgumentParser()
|
parser = ArgumentParser()
|
||||||
parser.add_argument("-f", "--file", required=True, help="Messfahrt csv")
|
parser.add_argument("-f", "--file", required=True, help="Messfahrt csv")
|
||||||
@@ -39,14 +45,20 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
df_wm = gdf.to_crs(epsg=3857)
|
df_wm = gdf.to_crs(epsg=3857)
|
||||||
ax2 = df_wm.plot()
|
ax2 = df_wm.plot()
|
||||||
ax2 = df_wm.plot(args.column, cmap="hot", legend=args.no_legend, ax=ax2)
|
ax2 = df_wm.plot(column=args.column, cmap="hot", legend=args.no_legend, ax=ax2, legend_kwds={"label": args.label},)
|
||||||
# ax2 = df_wm.plot.scatter(x="longitude", y="latitude", c="kmh", cmap="hot")
|
# ax2 = df_wm.plot.scatter(x="longitude", y="latitude", c="kmh", cmap="hot")
|
||||||
# zoom 17 is pretty
|
# zoom 17 is pretty
|
||||||
cx.add_basemap(ax2, source=cx.providers.OpenStreetMap.Mapnik, zoom=17)
|
cx.add_basemap(ax2, source=cx.providers.OpenStreetMap.Mapnik, zoom=17)
|
||||||
|
|
||||||
# gdf.plot()
|
# gdf.plot()
|
||||||
ax2.set_axis_off()
|
ax2.set_axis_off()
|
||||||
ax2.set_title(args.label if args.label else args.column)
|
if not args.no_legend:
|
||||||
|
ax2.set_title(args.label if args.label else args.column)
|
||||||
|
else:
|
||||||
|
fig = ax2.figure
|
||||||
|
cb_ax = fig.axes[0]
|
||||||
|
cb_ax.set_label(args.label)
|
||||||
|
cb_ax.tick_params(labelsize=30)
|
||||||
|
|
||||||
if args.show_providerinfo:
|
if args.show_providerinfo:
|
||||||
#####################################
|
#####################################
|
||||||
@@ -68,6 +80,6 @@ if __name__ == "__main__":
|
|||||||
# df.plot(x="longitude", y="latitude", kind="scatter", colormap="YlOrRd")
|
# df.plot(x="longitude", y="latitude", kind="scatter", colormap="YlOrRd")
|
||||||
|
|
||||||
if args.save:
|
if args.save:
|
||||||
plt.savefig("{}gps_plot.pdf".format(args.save))
|
plt.savefig("{}gps_plot.eps".format(args.save), bbox_inches="tight")
|
||||||
else:
|
else:
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import matplotlib.pyplot as plt
|
|||||||
import seaborn as sns
|
import seaborn as sns
|
||||||
|
|
||||||
sns.set()
|
sns.set()
|
||||||
sns.set(font_scale=1.5)
|
#sns.set(font_scale=1.5)
|
||||||
|
|
||||||
tex_fonts = {
|
tex_fonts = {
|
||||||
"pgf.texsystem": "lualatex",
|
"pgf.texsystem": "lualatex",
|
||||||
|
|||||||
Reference in New Issue
Block a user