https://github.com/micurry/easy_plots
An easy method for creating basemap plots
https://github.com/micurry/easy_plots
basemap matplotlib plot pyplot
Last synced: 9 months ago
JSON representation
An easy method for creating basemap plots
- Host: GitHub
- URL: https://github.com/micurry/easy_plots
- Owner: MiCurry
- Created: 2017-04-12T22:47:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T17:59:33.000Z (over 8 years ago)
- Last Synced: 2024-06-13T21:23:09.523Z (over 1 year ago)
- Topics: basemap, matplotlib, plot, pyplot
- Language: Python
- Size: 4.06 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# easy_plots
Basemap is a large package to install and I wanted to have an easy way to make
basemap plots on a varitey of different machines, so I created a Dockerfile with
basemap, numpy, matplotlib etc.
# Todo
# Installing
1. Clone this repository. If you're on Windows or MacOS make sure you clone it somewhere
in a user folder
(Windows: `//C/users/username/easy_plots`, MacOS: `/Users/easy_plots/media`).
```
git clone https://github.com/MiCurry/easy_plots.git
```
2. Install Docker if you haven't.
3. Build the Docker image by running. This will take some time. Let me know if
there's any errors..
```
docker build -t basemap .
```
# Running
1. Mount Point
Before you start running you'll need to pick a mount directory so the Docker
container can create a data volume to save files it downloads and plots it
saves as well as allowing you to see plots it creates.
This mount directory needs to point to the directory *data* contained within
this repository. You'll need to remember this direcotry path (best to write it
down). Mine is `//c/users/miles/projects/easy_plots/data`.
2. Create plots by using the docker run command and mounting the volume. You'll
use this volume each time you want to plot! Make sure you use it each time else
you wont be using the data you've already generated.
The basic structure of the run command is:
```
docker run -v [your-mount-direcotyr]:/home/data basemap
```
Here is mine as an example:
```
docker run -v /c/Users/Miles/Projects/easy_plots/data:/home/data basemap
```
# Testing Commands
```
docker run -v /c/Users/Miles/Projects/easy_plots/data:/home/data basemap touch data/new_file.txt # Create a test file
docker run -v /c/Users/Miles/Projects/easy_plots/data:/home/data basemap ls data # See if our file was created
```
Then see if the `new_file.txt` was created in /c/Users/Miles/Projects/easy_plots/data.