Skip to content

Commit

Permalink
ParaView: AnyLocation -> Any Location (#150)
Browse files Browse the repository at this point in the history
ParaView 5.10 released three years ago changed AnyLocation to Any Location.
  • Loading branch information
WeiqunZhang authored Jan 22, 2025
1 parent beca1f5 commit 7057507
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ExampleCodes/Amr/Advection_AmrCore/Exec/paraview_amr101.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def generate_movie_3D(AllPlotFiles):
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)

# change scalar bar placement
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0, 0.75]
phiLUTColorBar.ScalarBarLength = 0.2

Expand Down Expand Up @@ -284,7 +284,7 @@ def generate_movie_2D(AllPlotFiles):
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)

# change scalar bar placement
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0, 0.75]
phiLUTColorBar.ScalarBarLength = 0.2

Expand Down Expand Up @@ -336,4 +336,4 @@ def convert_avi_to_gif(output_movie_base, output_movie):
output_movie_base, output_movie = generate_movie_2D(PlotFiles)

# convert the avi movie into an animated gif
convert_avi_to_gif(output_movie_base, output_movie)
convert_avi_to_gif(output_movie_base, output_movie)
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Pipeline:

# get color legend/bar for phiLUT in view renderView1
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0.7951562900333077, 0.0840151515151517]
phiLUTColorBar.Title = 'phi'
phiLUTColorBar.ComponentTitle = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
# get color legend/bar for phiLUT in view renderView1
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)
phiLUTColorBar.Orientation = 'Horizontal'
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0.4079687499999999, 0.09624999999999999]
phiLUTColorBar.Title = 'phi'
phiLUTColorBar.ComponentTitle = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Pipeline:

# get color legend/bar for phiLUT in view renderView1
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0.7951562900333077, 0.0840151515151517]
phiLUTColorBar.Title = 'phi'
phiLUTColorBar.ComponentTitle = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
# get color legend/bar for phiLUT in view renderView1
phiLUTColorBar = GetScalarBar(phiLUT, renderView1)
phiLUTColorBar.Orientation = 'Horizontal'
phiLUTColorBar.WindowLocation = 'AnyLocation'
phiLUTColorBar.WindowLocation = 'Any Location'
phiLUTColorBar.Position = [0.4079687499999999, 0.09624999999999999]
phiLUTColorBar.Title = 'phi'
phiLUTColorBar.ComponentTitle = ''
Expand Down

0 comments on commit 7057507

Please sign in to comment.