[GRASS-dev] updated d.histogram

I’ve attached a small screenshot of d.histogram displaying in wxgrass with a blue background and white foreground. It looks nice. I’m using the slope example that was problematic before. It is also better formatted. But I thought that we’d get some decimal places on the x axis?

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

(attachments)

screenshot4.jpeg

Michael Barton wrote:

I¹ve attached a small screenshot of d.histogram displaying in wxgrass
with a blue background and white foreground. It looks nice. I¹m using
the slope example that was problematic before. It is also better
formatted. But I thought that we¹d get some decimal places on the x
axis?

Unrelated request that screenshot reminds me of: can there be a quit
button at the right end of the toolbar? (I've missed this in the tcl
profiling tool for a while).

Hamsih

On 5/17/07 7:35 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

I¹ve attached a small screenshot of d.histogram displaying in wxgrass
with a blue background and white foreground. It looks nice. I¹m using
the slope example that was problematic before. It is also better
formatted. But I thought that we¹d get some decimal places on the x
axis?

Unrelated request that screenshot reminds me of: can there be a quit
button at the right end of the toolbar? (I've missed this in the tcl
profiling tool for a while).

Hamsih

There can be. But it would just close the window, which clicking on the
close button will do. Are you looking for something in addition to this?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Hamish:

> Unrelated request that screenshot reminds me of: can there be a quit
> button at the right end of the toolbar? (I've missed this in the tcl
> profiling tool for a while).

Michael:

There can be. But it would just close the window, which clicking on
the close button will do. Are you looking for something in addition to
this?

Nothing more. Clicking on the "x" to close the window is a bit harsh for
a user not familar with the program. It's a bit like "what do I do now?
do I just nuke it?"

This is in spite of 'xkill' being one of my favorite programs :wink:

Hamish

OK. I can add it. Right now I'm trying to see why nothing works after
changing the command syntax.

Michael

On 5/17/07 8:42 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Hamish:

Unrelated request that screenshot reminds me of: can there be a quit
button at the right end of the toolbar? (I've missed this in the tcl
profiling tool for a while).

Michael:

There can be. But it would just close the window, which clicking on
the close button will do. Are you looking for something in addition to
this?

Nothing more. Clicking on the "x" to close the window is a bit harsh for
a user not familar with the program. It's a bit like "what do I do now?
do I just nuke it?"

This is in spite of 'xkill' being one of my favorite programs :wink:

Hamish

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Done.

Michael

On 5/17/07 8:42 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Hamish:

Unrelated request that screenshot reminds me of: can there be a quit
button at the right end of the toolbar? (I've missed this in the tcl
profiling tool for a while).

Michael:

There can be. But it would just close the window, which clicking on
the close button will do. Are you looking for something in addition to
this?

Nothing more. Clicking on the "x" to close the window is a bit harsh for
a user not familar with the program. It's a bit like "what do I do now?
do I just nuke it?"

This is in spite of 'xkill' being one of my favorite programs :wink:

Hamish

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Hello Michael

On Thu, 17 May 2007, Michael Barton wrote:

I¹ve attached a small screenshot of d.histogram displaying in wxgrass with a
blue background and white foreground. It looks nice. I¹m using the slope
example that was problematic before. It is also better formatted. But I
thought that we¹d get some decimal places on the x axis?

Strange, it almost looks like the patch hasn't applied properly and only some of the bugs are fixed, i.e. like the big tick spacing isn't calculated correctly and the numbers are still being truncated to integers before printing. See attached for how it looks for me and an updated copy of the patch against the latest source, in case anybody else would like to try and verify their results (Note: PNG attachment hopefully results in much smaller file size than JPEG...).

The commandline I used was:
GRASS 6.3.cvs (spearfish):C:\ >set GRASS_PNGFILE=c:\temp\histogram.png

GRASS 6.3.cvs (spearfish):C:\ >set GRASS_RENDER_IMMEDIATE=TRUE

GRASS 6.3.cvs (spearfish):C:\ >d.histogram slope color=white bgcolor=black
  100%
PNG: GRASS_TRUECOLOR status: FALSE
PNG: collecting to file: c:\temp\histogram.png,
GRASS_WIDTH=640, GRASS_HEIGHT=480

GRASS 6.3.cvs (spearfish):C:\ >

Paul

(attachments)

histogram.png
diff.txt (3.18 KB)

Paul Kelly wrote:

Strange, it almost looks like the patch hasn't applied properly and
only some of the bugs are fixed, i.e. like the big tick spacing isn't
calculated correctly and the numbers are still being truncated to
integers before printing. See attached for how it looks for me and an
updated copy of the patch against the latest source, in case anybody
else would like to try and verify their results (Note: PNG attachment
hopefully results in much smaller file size than JPEG...).

can you have it scan through before rendering to find the smallest font
size it will need instead of having each tick resize on its own?
(d.legend does this [except for sometimes with a flipped FP legend])

Is it using %g and not %.*f? why do some ticks have 3 and some 1 decimal
place? Fixed format would solve it too. Could the ticks be placed on
round numbers?

Hamish

Hmmm. I wonder why I don't get the stuff after the decimal point. I updated
yesterday afternoon Arizona time. I'm using a Mac if that makes any
difference.

Michael

On 5/18/07 2:01 AM, "Paul Kelly" <paul-grass@stjohnspoint.co.uk> wrote:

Hello Michael

On Thu, 17 May 2007, Michael Barton wrote:

I¹ve attached a small screenshot of d.histogram displaying in wxgrass with a
blue background and white foreground. It looks nice. I¹m using the slope
example that was problematic before. It is also better formatted. But I
thought that we¹d get some decimal places on the x axis?

Strange, it almost looks like the patch hasn't applied properly and only
some of the bugs are fixed, i.e. like the big tick spacing isn't
calculated correctly and the numbers are still being truncated to integers
before printing. See attached for how it looks for me and an updated copy
of the patch against the latest source, in case anybody else would like to
try and verify their results (Note: PNG attachment hopefully results in
much smaller file size than JPEG...).

The commandline I used was:
GRASS 6.3.cvs (spearfish):C:\ >set GRASS_PNGFILE=c:\temp\histogram.png

GRASS 6.3.cvs (spearfish):C:\ >set GRASS_RENDER_IMMEDIATE=TRUE

GRASS 6.3.cvs (spearfish):C:\ >d.histogram slope color=white bgcolor=black
  100%
PNG: GRASS_TRUECOLOR status: FALSE
PNG: collecting to file: c:\temp\histogram.png,
GRASS_WIDTH=640, GRASS_HEIGHT=480

GRASS 6.3.cvs (spearfish):C:\ >

Paul

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton