KaiyuanTang commited on
Commit
d16172e
·
1 Parent(s): 51ea51c

fix legend color

Browse files
main/mhd-magfield_streamribbon/GS/mhd-magfield_streamribbon_gs.png CHANGED

Git LFS Details

  • SHA256: 6ebfa5c74bd11e4e2f5cfc651f2479b124df980a8a169b4650f95e506234d7f9
  • Pointer size: 131 Bytes
  • Size of remote file: 294 kB

Git LFS Details

  • SHA256: a7bf2dae722938de5a69632687b137bd5b93619c99beb54b4001a506629d78b1
  • Pointer size: 131 Bytes
  • Size of remote file: 303 kB
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:dda61c881aa4a2a1e877fb9571cec4d7e7bfe8ffbcd8357a75bdf76b79ec1201
3
- size 223280
 
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, 'MHD_magfield_0020.vti')
6
- OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
7
- OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
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 = 'Magnetic Field Magnitude'
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

  • SHA256: 5080afc5dbb752bbc3e639d9494b766319f670be299a3b2137cea9859b8160ff
  • Pointer size: 131 Bytes
  • Size of remote file: 462 kB

Git LFS Details

  • SHA256: c938c93ef7e3c5b54475919ab9758d40b13c9161a3d7449a80b71e98b6d98f23
  • Pointer size: 131 Bytes
  • Size of remote file: 483 kB
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:640a0c0edc8b7fc77e319fb3a369ae3c0756367b7b25ad43ff3b1ed1ada4de04
3
- size 778399
 
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, 'MHD_velocity_*.vti')))
7
- OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
8
- OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
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 = 'Velocity Magnitude'
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

  • SHA256: c9768d1b72e91f6f5f43648981b7cc7a3f62392af528f501b2bc1a042e04c824
  • Pointer size: 131 Bytes
  • Size of remote file: 366 kB

Git LFS Details

  • SHA256: efd54fee975f580a61a0fff1b432a64b98823205f7622aa92c7b6f236b5aa360
  • Pointer size: 131 Bytes
  • Size of remote file: 376 kB
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:f63a077c803e9b46078d48623813a1f1640d0cfb30329535c0b520a5870d8d7f
3
- size 274602
 
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, '..', 'vti_data', 'MHD_velocity_0030.vti')
6
- OUTPUT_IMG = os.path.join(SCRIPT_DIR, 'gt_image.png')
7
- OUTPUT_STATE = os.path.join(SCRIPT_DIR, 'gt_state.pvsm')
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 = 'Velocity Magnitude'
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]