Skip to content

Commit

Permalink
Specify explicit coordinates ordering
Browse files Browse the repository at this point in the history
The ordering of x then y makes it possible to pass the output xarray
into a HoloViews Image container with the dimensions being transposed
  • Loading branch information
jonmmease committed Aug 15, 2019
1 parent f4c6843 commit 87cf7e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datashader/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .glyphs.points import _PointLike
from .glyphs.area import _AreaToLineLike
from .utils import Dispatcher
from collections import OrderedDict

__all__ = ()

Expand Down Expand Up @@ -43,5 +44,6 @@ def default(glyph, df, schema, canvas, summary):
extend(bases, df, x_st + y_st, x_range + y_range)

return finalize(bases,
coords=[y_axis, x_axis],
coords=OrderedDict([(glyph.x_label, x_axis),
(glyph.y_label, y_axis)]),
dims=[glyph.y_label, glyph.x_label])

0 comments on commit 87cf7e3

Please sign in to comment.