Skip to content

Commit

Permalink
Infer Image interval breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 5, 2018
1 parent ac68caf commit 72ad5c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geoviews/plotting/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from holoviews.core import (Store, HoloMap, Layout, Overlay,
CompositeOverlay, Element, NdLayout)
from holoviews.core import util

from holoviews.core.data import GridInterface
from holoviews.core.options import SkipRendering, Options
from holoviews.plotting.mpl import (ElementPlot, ColorbarPlot, PointPlot,
AnnotationPlot, TextPlot,
Expand Down Expand Up @@ -238,6 +238,8 @@ def get_data(self, element, ranges, style):
self._norm_kwargs(element, ranges, style, element.vdims[0])
style.pop('interpolation', None)
xs, ys, zs = geo_mesh(element)
xs = GridInterface._infer_interval_breaks(xs)
ys = GridInterface._infer_interval_breaks(ys)
if self.geographic:
style['transform'] = element.crs
return (xs, ys, zs), style, {}
Expand Down

0 comments on commit 72ad5c2

Please sign in to comment.