chaco/data_view.py DataView class vertical orientation bug
Open
- Dominant language
- Python
- Stars
- 305
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
The map_data() method from the DataView class in chaco/data_view.py does not correctly handle a vertical orientation.
Line 233 from the map_data method:
{{{
return array((self.index_mapper.map_data(x), self.value_mapper.map_data(y)))
}}}
I believe the fix is to replace the above line by:
{{{
if self.orientation == 'h':
return array((self.index_mapper.map_data(x), self.value_mapper.map_data(y)))
else:
return array((self.index_mapper.map_data(y), self.value_mapper.map_data(x)))
}}}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.