| parser.add_argument("-a", "--column", required=True, help="Column to plot") | parser.add_argument("-a", "--column", required=True, help="Column to plot") | ||||
| parser.add_argument("-l", "--label", help="Label above the plot.") | parser.add_argument("-l", "--label", help="Label above the plot.") | ||||
| parser.add_argument("--no_legend", action="store_false", default=True, help="Do not show legend.") | parser.add_argument("--no_legend", action="store_false", default=True, help="Do not show legend.") | ||||
| parser.add_argument("--save", default=None, help="Location to save pdf file.") | |||||
| parser.add_argument( | parser.add_argument( | ||||
| "--show_providerinfo", | "--show_providerinfo", | ||||
| ##################################### | ##################################### | ||||
| # df.plot(x="longitude", y="latitude", kind="scatter", colormap="YlOrRd") | # df.plot(x="longitude", y="latitude", kind="scatter", colormap="YlOrRd") | ||||
| plt.show() | |||||
| if args.save: | |||||
| plt.savefig("{}gps_plot.pdf".format(args.save)) | |||||
| else: | |||||
| plt.show() |