Commit ·
d16172e
1
Parent(s): 51ea51c
fix legend color
Browse files- main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.png +2 -2
- main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.pvsm +2 -2
- main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.py +6 -4
- main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.png +2 -2
- main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.pvsm +2 -2
- main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.py +6 -4
- main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.png +2 -2
- main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.pvsm +2 -2
- main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.py +6 -4
main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e89f4b8517e8f6d3ad4b09f75e8d1322155c264bc551824d52fd5efbbc92c7a9
|
| 3 |
+
size 222791
|
main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.py
CHANGED
|
@@ -2,9 +2,9 @@ import os
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, '
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, '
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
@@ -41,8 +41,10 @@ ribbonDisplay.Specular = 0.5
|
|
| 41 |
|
| 42 |
ribbonDisplay.SetScalarBarVisibility(renderView, True)
|
| 43 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 44 |
-
colorBar.Title = '
|
| 45 |
colorBar.ComponentTitle = ''
|
|
|
|
|
|
|
| 46 |
|
| 47 |
# Isometric camera
|
| 48 |
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
|
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
+
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'data', 'mhd-magfield_streamribbon.vti')
|
| 6 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'mhd-magfield_streamribbon_gs.png')
|
| 7 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'mhd-magfield_streamribbon_gs.pvsm')
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
|
|
| 41 |
|
| 42 |
ribbonDisplay.SetScalarBarVisibility(renderView, True)
|
| 43 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 44 |
+
colorBar.Title = ''
|
| 45 |
colorBar.ComponentTitle = ''
|
| 46 |
+
colorBar.TitleColor = [0.0, 0.0, 0.0]
|
| 47 |
+
colorBar.LabelColor = [0.0, 0.0, 0.0]
|
| 48 |
|
| 49 |
# Isometric camera
|
| 50 |
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b31675cb2a6305d680195feedeb6fdb6c398e615ca42c50ec918b5103f980629
|
| 3 |
+
size 777252
|
main/mhd-turbulence_pathsurface/GS/mhd-turbulence_pathsurface_gs.py
CHANGED
|
@@ -3,9 +3,9 @@ import glob
|
|
| 3 |
from paraview.simple import *
|
| 4 |
|
| 5 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
-
VTI_FILES = sorted(glob.glob(os.path.join(SCRIPT_DIR, '
|
| 7 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, '
|
| 8 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, '
|
| 9 |
|
| 10 |
# Path surface: show stream surfaces from multiple timesteps with transparency
|
| 11 |
|
|
@@ -45,8 +45,10 @@ magLUT.ApplyPreset('Viridis (matplotlib)', True)
|
|
| 45 |
# Show color bar on the last one
|
| 46 |
ribbonDisplay.SetScalarBarVisibility(renderView, True)
|
| 47 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 48 |
-
colorBar.Title = '
|
| 49 |
colorBar.ComponentTitle = ''
|
|
|
|
|
|
|
| 50 |
|
| 51 |
renderView.CameraPosition = [180.0, 180.0, 180.0]
|
| 52 |
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
|
|
|
| 3 |
from paraview.simple import *
|
| 4 |
|
| 5 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
+
VTI_FILES = sorted(glob.glob(os.path.join(SCRIPT_DIR, '..', 'data', 'mhd-turbulence_pathsurface_*.vti')))
|
| 7 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'mhd-turbulence_pathsurface_gs.png')
|
| 8 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'mhd-turbulence_pathsurface_gs.pvsm')
|
| 9 |
|
| 10 |
# Path surface: show stream surfaces from multiple timesteps with transparency
|
| 11 |
|
|
|
|
| 45 |
# Show color bar on the last one
|
| 46 |
ribbonDisplay.SetScalarBarVisibility(renderView, True)
|
| 47 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 48 |
+
colorBar.Title = ''
|
| 49 |
colorBar.ComponentTitle = ''
|
| 50 |
+
colorBar.TitleColor = [0.0, 0.0, 0.0]
|
| 51 |
+
colorBar.LabelColor = [0.0, 0.0, 0.0]
|
| 52 |
|
| 53 |
renderView.CameraPosition = [180.0, 180.0, 180.0]
|
| 54 |
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.pvsm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d8d8c803b833ade3d16d33288b88f5e878f299aa16a03fa4149a41413e7503f
|
| 3 |
+
size 274103
|
main/mhd-turbulence_streamline/GS/mhd-turbulence_streamline_gs.py
CHANGED
|
@@ -2,9 +2,9 @@ import os
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
-
VTI_PATH = os.path.join(SCRIPT_DIR, '..', '
|
| 6 |
-
OUTPUT_IMG = os.path.join(SCRIPT_DIR, '
|
| 7 |
-
OUTPUT_STATE = os.path.join(SCRIPT_DIR, '
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
@@ -34,8 +34,10 @@ magLUT.ApplyPreset('Turbo', True)
|
|
| 34 |
|
| 35 |
tubeDisplay.SetScalarBarVisibility(renderView, True)
|
| 36 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 37 |
-
colorBar.Title = '
|
| 38 |
colorBar.ComponentTitle = ''
|
|
|
|
|
|
|
| 39 |
|
| 40 |
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 41 |
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|
|
|
|
| 2 |
from paraview.simple import *
|
| 3 |
|
| 4 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 5 |
+
VTI_PATH = os.path.join(SCRIPT_DIR, '..', 'data', 'mhd-turbulence_streamline.vti')
|
| 6 |
+
OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'mhd-turbulence_streamline_gs.png')
|
| 7 |
+
OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'mhd-turbulence_streamline_gs.pvsm')
|
| 8 |
|
| 9 |
reader = XMLImageDataReader(FileName=[VTI_PATH])
|
| 10 |
reader.UpdatePipeline()
|
|
|
|
| 34 |
|
| 35 |
tubeDisplay.SetScalarBarVisibility(renderView, True)
|
| 36 |
colorBar = GetScalarBar(magLUT, renderView)
|
| 37 |
+
colorBar.Title = ''
|
| 38 |
colorBar.ComponentTitle = ''
|
| 39 |
+
colorBar.TitleColor = [0.0, 0.0, 0.0]
|
| 40 |
+
colorBar.LabelColor = [0.0, 0.0, 0.0]
|
| 41 |
|
| 42 |
renderView.CameraPosition = [200.0, 200.0, 200.0]
|
| 43 |
renderView.CameraFocalPoint = [63.5, 63.5, 63.5]
|