Skip to content

Commit dbb34f3

Browse files
authored
Cdat logo (#297)
* using CDAT Logo rather than UV-CDAT * test suite passes * logo file * correct path to image * renamed logo.png to cdat.png er @aashish24 suggestion
1 parent a647648 commit dbb34f3

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Share/cdat.png

232 KB
Loading

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'Share/data_continent_other7',
2525
'Share/data_continent_fine',
2626
'Share/initial.attributes',
27-
'Share/uvcdat.png',
27+
'Share/cdat.png',
2828
'Share/marker_icon.png',
2929
'Share/text_icon.png',
3030
'Share/fill_icon.png',
File renamed without changes.

tests/test_vcs_custom_logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def testCustomLogo(self):
1717
logo1.y = .2
1818
logo1.plot(self.x, bg=self.bg)
1919

20-
png_pth = os.path.join(sys.prefix, "share", "vcs", "uvcdat.png")
20+
png_pth = os.path.join("tests", "share", "uvcdat.png")
2121
print("PNG:", png_pth)
2222
logo2 = vcs.utils.Logo(png_pth)
2323
logo2.x = .7

vcs/VTKPlots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,15 +1375,15 @@ def createLogo(self):
13751375
sys.prefix,
13761376
"share",
13771377
"vcs",
1378-
"uvcdat.png")
1378+
"cdat.png")
13791379
reader = vtk.vtkPNGReader()
13801380
reader.SetFileName(defaultLogoFile)
13811381
reader.Update()
13821382
logo_input = reader.GetOutput()
13831383
self.logoRepresentation = vtk.vtkLogoRepresentation()
13841384
self.logoRepresentation.SetImage(logo_input)
13851385
self.logoRepresentation.ProportionalResizeOn()
1386-
self.logoRepresentation.SetPosition(0.882, 0.0)
1386+
self.logoRepresentation.SetPosition(0.895, 0.0)
13871387
self.logoRepresentation.SetPosition2(0.10, 0.05)
13881388
self.logoRepresentation.GetImageProperty().SetOpacity(.8)
13891389
self.logoRepresentation.GetImageProperty(

0 commit comments

Comments
 (0)