Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ _save_cache: &save_cache
- ~/.cache/coursier
- ~/.ivy2/cache
- ~/.sbt

before_script:
- ulimit -c unlimited -S
- ~/.local

jobs:
test:
Expand Down Expand Up @@ -68,6 +66,7 @@ jobs:
<<: *restore_cache

- run: ulimit -c unlimited -S
- run: pip3 install --quiet --user -r pyrasterframes/src/main/python/requirements.txt
- run:
command: cat /dev/null | sbt makeSite
no_output_timeout: 30m
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cache:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.rf_cache
- $HOME/.cache/coursier

scala:
- 2.11.11
Expand Down
5 changes: 1 addition & 4 deletions pyrasterframes/src/main/python/pyrasterframes/rf_ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def tile_to_png(tile, fig_size=None):
import io
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import matplotlib.colors as colors
from matplotlib import cm

# Set up matplotlib objects
nominal_size = 2 # approx full size for a 256x256 tile
Expand All @@ -42,9 +40,8 @@ def tile_to_png(tile, fig_size=None):
axis = fig.add_subplot(1, 1, 1)

data = tile.cells
norm = colors.LogNorm(data.min(), data.max())

axis.imshow(data, norm=norm, cmap=cm.get_cmap("RdBu"))
axis.imshow(data)
axis.set_aspect('equal')
axis.xaxis.set_ticks([])
axis.yaxis.set_ticks([])
Expand Down