Bug 144095 - Maximize option gives incorrect font size
Summary: Maximize option gives incorrect font size
Status: RESOLVED INTENTIONAL
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-11 22:17 UTC by Andrew Walker
Modified: 2007-04-11 22:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Export of maximized plot (14.68 KB, image/png)
2007-04-11 22:19 UTC, Andrew Walker
Details
Export of 'normal' plot. (7.40 KB, image/png)
2007-04-11 22:20 UTC, Andrew Walker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2007-04-11 22:17:03 UTC
Version:           1.4.0 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

Maximizing a plot can give a font size that is too large.

STEPS TO REPRODUCE:

Start Kst
Create a grid of plots in one tab (say 4x5)
Maximize one of the plots (hit 'z' or select Maximize from the context menu)
Create the same plot you maximized on its own in a new tab

EXPECTED RESULTS:

The two plots should have the same font size for labels and legend

RESULTS:

The font size in the maximized plot is much larger
Comment 1 Andrew Walker 2007-04-11 22:19:03 UTC
Created attachment 20239 [details]
Export of maximized plot
Comment 2 Andrew Walker 2007-04-11 22:20:27 UTC
Created attachment 20240 [details]
Export of 'normal' plot.

The two attachments (this one and the previous one) show the difference between
a maximized plot and a single plot in a tab. Ideally they should be identical -
at least in regards to font size.
Comment 3 Netterfield 2007-04-11 22:26:54 UTC
"This is a feature, not a bug."

The wizard decides in its infinite wisdom to create plots with larger fonts if they are in a grid.  We will keep the current behavior.
Comment 4 Andrew Walker 2007-04-11 22:29:42 UTC
Are you undertstood the nature of the complaint? Did you look at the two attachments? I don't believe this is related in any way to the wizard.
Comment 5 Netterfield 2007-04-11 22:40:30 UTC
I think so.
The wizard created the plots with larger fonts - too big, in fact, given the 
number of items in the legend.

Take a look at the font size for the labels and legend for the 'plot in a 
grid', and make a single plot of the same stuff with this same requested font 
size.  If everthing is working as intended, it should look the same as 
the 'plot-in-a-grid' in 'z' mode.

The question your attachmets demonstrate is whether we should make the auto 
font size for legends smaller than we would like if the legend will be too 
big.  This question is fairly general, as it can apply any time we create a 
new legend.

On Wednesday 11 April 2007 4:29:43 pm Andrew Walker wrote:
> ------- Are you undertstood the nature of the complaint? Did you look at
> the two attachments? I don't believe this is related in any way to the
> wizard.

Comment 6 Andrew Walker 2007-04-11 22:56:56 UTC
Agreed - though I think calling this a feature is bit of a stretch.

Clearly we shouldn't be changing the font size (as given in the plot dialog) from
the default value. The "true" font size should be selected based on the size of the plot and, possibly, the size of the window.

I don't see a problem with the legend. If the user (emphasis on user) selects a font size so large that the legend won't fit in the plot then it will spill outside.