File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
pyrasterframes/src/main/python/pyrasterframes Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ _save_cache: &save_cache
2828 - ~/.cache/coursier
2929 - ~/.ivy2/cache
3030 - ~/.sbt
31-
32- before_script :
33- - ulimit -c unlimited -S
31+ - ~/.local
3432
3533jobs :
3634 test :
6866 << : *restore_cache
6967
7068 - run : ulimit -c unlimited -S
69+ - run : pip3 install --quiet --user -r pyrasterframes/src/main/python/requirements.txt
7170 - run :
7271 command : cat /dev/null | sbt makeSite
7372 no_output_timeout : 30m
Original file line number Diff line number Diff line change 1010 - $HOME/.ivy2/cache
1111 - $HOME/.sbt/boot
1212 - $HOME/.rf_cache
13+ - $HOME/.cache/coursier
1314
1415scala :
1516 - 2.11.11
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ def tile_to_png(tile, fig_size=None):
2929 import io
3030 from matplotlib .backends .backend_agg import FigureCanvasAgg as FigureCanvas
3131 from matplotlib .figure import Figure
32- import matplotlib .colors as colors
33- from matplotlib import cm
3432
3533 # Set up matplotlib objects
3634 nominal_size = 2 # approx full size for a 256x256 tile
@@ -42,9 +40,8 @@ def tile_to_png(tile, fig_size=None):
4240 axis = fig .add_subplot (1 , 1 , 1 )
4341
4442 data = tile .cells
45- norm = colors .LogNorm (data .min (), data .max ())
4643
47- axis .imshow (data , norm = norm , cmap = cm . get_cmap ( "RdBu" ) )
44+ axis .imshow (data )
4845 axis .set_aspect ('equal' )
4946 axis .xaxis .set_ticks ([])
5047 axis .yaxis .set_ticks ([])
You can’t perform that action at this time.
0 commit comments