enthought / enthought/mayavi

Barchart: Separate scales for X- and Y

Open
#1,257 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

In order to allow easier plotting of 3D-histograms using barcharts in mayavi, it would be great to have a possibility for glyphs to have different scaling values in X- and Y-directions. This would especially allow using the integrated axes labelling, as bars with widths of 1 in X- and Y-direction are not often the case. At the moment, I have to recreate labelling manually.

The easiest approach might be just to add a new vector parameter to the `barchart` function, e.g. `scale_components` (with the scales in X,Y,Z-directions), which can be directly passed to VTK when setting ScaleMode to VTK_SCALE_BY_VECTORCOMPONENTS

See also here: https://github.com/Kitware/VTK/blob/897333f931a4f2813b0be37ec8cf6ad919e629d9/Filters/Core/vtkGlyph3D.cxx#L475

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.