visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
427 stars 109 forks source link

VisIt doesn't scale the thickness and length of axis ticks when saving a window #19634

Open a-amouei opened 2 months ago

a-amouei commented 2 months ago

Hi. I occasionally save images with resolutions much higher than that of my monitor. The problem I face is that VisIt apparently renders the axis lines and axis ticks in the image file with the same size as they appear on the monitor. As a result, in the image file, I have a very large plot with axis lines and axis ticks that are unsuitably thin and short. The attribute axes2D.lineWidth is useful, but it doesn't affect the length of the axis ticks. It seems that in the past, the attribute tickMarksMajorSize could be used for this purpose, but it doesn't exist anymore. I'm using VisIt 3.4.1.

cyrush commented 1 month ago

@a-amouei thank you for this report, we will look into the changes that started in 3.4.1

biagas commented 1 month ago

@a-amouei I am not sure what you mean by tickMarkMajorSize. I don't see reference to it in any recent versions of our Annotations.

You can change tick mark settings by first disabling 'Auto set ticks', then making changes.

via GUI: 2DGeneralTab 2DXTab

From the cli:

a = GetAnnotationAttributes()
a.axes2D.autoSetTicks=0
#here are some of the tickMarks options for the xAxis (default values are shown), (yAxis has same)
a.axes2D.xAxis.tickMarks.majorMinimum = 0
a.axes2D.xAxis.tickMarks.majorMaximum = 1
a.axes2D.xAxis.tickMarks.minorSpacing = 0.02
a.axes2D.xAxis.tickMarks.majorSpacing = 0.2
SetAnnotationAttributes(a)

Does any of this help?

a-amouei commented 1 month ago

@biagas Thanks for your reply. I have never used tickMarkMajorSize myself, but the AI of Microsoft said that I could use it to make the tick marks larger in VisIt. Since it doesn't seem to be available now, I thought that it might have been available in a previous release.

I think your answer covers how the number of tick marks and the line width can be changed, but not the length of each tick mark. The width of a tick mark and its length are in two different directions (a tick mark is a two-dimensional object). I had tried increasing the line width. It was helpful but not adequate.

biagas commented 1 month ago

Setting length of the tick marks has never been an option. A feature request for this option could be created.

biagas commented 2 weeks ago

Turning this into a Feature request, to allow changing the length of tick marks.