Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScalarBars.add_scalar_bar: correct annotation text scaling setting, w…
…hen fixed font size is given (#1750) * ScalarBars.add_scalar_bar: correct annotation text scaling setting, when fixed font size is given Even if a label font size was given, size of `below_label` and `above_label` was scaled with the view port. Line 423 must be `SetAnnotationTextScalingOff` (value 0) for no scaling, see <https://vtk.org/doc/nightly/html/classvtkScalarBarActor.html#acfe97b358b89cd544df5e7826d59e4f7> * Annotation text scaling on, when none font size is given (addition to last commit) When you give none label or title font size, you want a scaling annotation text, at it was already true for the labels and the title texts. Comment for Image Regression Testing: This will slightly change the images of the tests: - test_above_below_scalar_range_annotations - test_user_annotations_scalar_bar_mesh * add test for fix/add_scalar_bar-AnnotationTextScaling I union the both upper tests and add fixed settings for title and label font sizes. * Add image for new test image_cache/fixed_font_size_annotation_text_scaling_off.png Co-authored-by: Alex Kaszynski <akascap@gmail.com>
- Loading branch information