Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
ParaView
ParaView
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2,002
    • Issues 2,002
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 57
    • Merge Requests 57
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ParaView
  • ParaViewParaView
  • Issues
  • #17190

Closed
Open
Opened Feb 16, 2017 by Elias Pipping@pipping
  • Report abuse
  • New issue
Report abuse New issue

5.3.0-RC1: misc. regressions on macOS

There are multiple issues here. I don't know what's going on or what's causing them so I'll just attach a few renderings, briefly explain how I obtained them, and hope the (unintentional?) differences between 5.2.0 and 5.3.0-RC1 speak for themselves.

In a script(*), I render a scene to a PNG file. I get a render view and set its size like this

renderView1 = GetActiveViewOrCreate('RenderView')
renderView1.ViewSize = [1000, 400]

I also attach a color bar to the plot

velocityLUTColorBar = GetScalarBar(velocityLUT, renderView1)
velocityLUTColorBar.Title = 'Velocity'
velocityLUTColorBar.ComponentTitle = 'Magnitude [mm/s]'
velocityLUTColorBar.AutomaticLabelFormat = 0
velocityLUTColorBar.LabelFormat = '%.1f'
velocityLUTColorBar.RangeLabelFormat = '%.1f'
velocityLUTColorBar.NumberOfLabels = 6
velocityLUTColorBar.TitleFontSize = 7
velocityLUTColorBar.LabelFontSize = 6

velocityLUTColorBar.TitleJustification = 'Centered'
velocityLUTColorBar.AutoOrient = 0
velocityLUTColorBar.Orientation = 'Horizontal'
velocityLUTColorBar.AspectRatio = 40.0

# I do not understand these numbers
velocityLUTColorBar.Position = [0.36, 0.75]
velocityLUTColorBar.Position2 = [0.3, 0.0]

and put an annotation in place (this rendering is really one frame from a video(**)):

pythonAnnotation2 = PythonAnnotation(Input=timeInfo)
pythonAnnotation2.ArrayAssociation = 'Row Data'
pythonAnnotation2.Expression = """
'simulation time: {:.3f}s'.format((relativeTime[0]) * 1000)
"""
pythonAnnotation2Display = Show(pythonAnnotation2, renderView1)
pythonAnnotation2Display.WindowLocation = 'AnyLocation'
pythonAnnotation2Display.Position = [0.07, 0.05]

Now I observe four differences in the output between 5.3.0-RC1 and 5.2.0, all of which I find undesirable:

  1. With 5.3.0-RC1, I get a 500x200 PNG instead of the 1000x400 I would expect (and which I get with 5.2.0!)
  2. (After requesting 2000x800 with 5.3.0-RC1, resulting in a 1000x400 PNG) It seems font sizes are slightly different now (smaller)
  3. (with the aforementioned change still) There are no periods on the colorbar tick labels
  4. (with the aforementioned change still) If you look at the annotation at the bottom, you can see a nonsmooth transition from the upper half to the lower half, most noticeable in the numbers 7 and 9.

To illustrated, I'm attaching three PNGs: (1) The 1000x400 with 5.2.0, (2) the 500x200 with 5.3.0-RC1 arising from the same script and (3) the 1000x400 with 5.3.0-RC1 resulting from a hack to the script.

test13_snapshot.0000-5.2

test13_snapshot.0000-5.3.0-RC1

test13_snapshot.0000-5.3.0-RC1_new

(*) I don't mind sharing the script but it needs to load some data and so I expect it would be of limited use. I have not worked on a minimal working example, yet, hoping that one will not be necessary. (**) The complete video is supposed to look like this one obtained with 5.1.2.

PS: I've manually disabled FXAA through renderView1.UseFXAA = 0.

Assignee
Assign to
5.4 (ISC 2017)
Milestone
5.4 (ISC 2017)
Assign milestone
Time tracking
None
Due date
None
1
Labels
priority:required
Assign labels
  • View project labels
Reference: paraview/paraview#17190