 |
visualdatatools.com Discussion for DataTank and DataGraph
|
| View previous topic :: View next topic |
| Author |
Message |
SimonS
Joined: 05 Jan 2012 Posts: 4
|
Posted: Thu Jan 05, 2012 11:45 am Post subject: Some questions |
|
|
Hi,
I have just been trying out the demo of datagraph and have found it to be very good. I was about to buy it when I realised that the font on the graph axis title had not changed in response to my changes from the menu. In other words I want to show a superscripted -1 within the Y axis title. Is this possible to do? Also can one change the orientation of the text in text boxes that I add to the graph?
Thanks very much.
Regards,
Simon. |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Thu Jan 05, 2012 9:04 pm Post subject: Re: Some questions |
|
|
| SimonS wrote: | | I want to show a superscripted -1 within the Y axis title. Is this possible to do? | Hi Simon, DataGraph uses some Latex formatting commands to embed font formatting, so to to get, say 's' with a '-1' superscript, use something like:
s^{-1}
in the text box and the correctly formatted text will show up on the graph.
if the superscript is just one character, then you can just type the standard notation, such as x^2 for x squared.
Last edited by Mike on Thu Jan 05, 2012 9:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Thu Jan 05, 2012 9:13 pm Post subject: Re: Some questions |
|
|
| SimonS wrote: | | Also can one change the orientation of the text in text boxes that I add to the graph? | Yes. The axis labels in the default axis settings box are not very customisable, but if you add a "Text" command, you have a lot more control, using the "Where" popup button.
It would be nice to have arbitrary text box orientation though, rather than being constrained to horizontal/vertical, clockwise/counterclockwise. |
|
| Back to top |
|
 |
David Site Admin
Joined: 25 Nov 2006 Posts: 1542 Location: Chapel Hill, NC
|
Posted: Thu Jan 05, 2012 10:43 pm Post subject: |
|
|
The Label command does allow you to specify the rotation. By default it has an arrow, but you can either hide the arrow or tell DG to put the label at the starting point.
I didn't add a rotation option to the Text command since I didn't have a clear sense how to rotate things when you offset a text block from one of the corners. That is, if you specify an offset of 100,200 and a rotation of 30 degrees, what should the box be rotated around? Then add the complication that you can align the lines along a period, left right etc and I feel that the rotation point will feel arbitrary.
The Label and Text command have a lot of overlap.
And regarding changing the font style in the label.
This is really a bug in Cocoa. For example, go the the Mail application, select a text in the From/To field and change the font size/style. Now try to do the same thing in the Subject line. The issue is that Apple should have stopped the font style settings for the Token field just like they do for the standard field. Because they handle this internally I can't easily intercept the font style changes, and if I did it could break in the future. What I planned at one point to do is to catch these changes and either tell you what to do with a pop-up window or add the necessary layout commands. Instead what I did was to add it to the + menu. So type in a-1, select the "-1" and select Formatting->Subscript from the + menu. This inserts the proper curly braces and _. The size of the subscript is reduced and will not throw off line spacing (like it typically does in Word processors).
David
David |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Thu Jan 05, 2012 10:58 pm Post subject: |
|
|
| David wrote: | | The Label command does allow you to specify the rotation. By default it has an arrow, but you can either hide the arrow or tell DG to put the label at the starting point. | Ah, yes, and I think I've used that very feature but forgot it somewhere along the way. And also the little menu to allow the superscript/subscript selection.
I have to say the number one outstanding feature I'd like to see added to DataGraph is the ability to control the positioning of the titles as entered in the axis settings. In almost every graph, I find the spacing of the axis titles to be either slightly too tight or too loose.
It's not surprising that an automatic algorithm won't be able to please very one all the time, but it is a bit of a pain to have to add two extra 'Text' commands to every graph, after trying out the default position. It would be great to simply have a slider to move each of them a little closer or further away. That single change would eliminate 95% of all of my Text commands.
Cheers,
Michael |
|
| Back to top |
|
 |
David Site Admin
Joined: 25 Nov 2006 Posts: 1542 Location: Chapel Hill, NC
|
Posted: Thu Jan 05, 2012 11:17 pm Post subject: |
|
|
Maybe I should change the default settings. Send me files with the improvement. I tweak things from time to time. I tend to go for tight fits, but avoid overlaps. If it is clear that I can't suit 95% of cases with the default rules I could add controls to the standard axis settings. But by all means people should not assume that they can't affect the default rules. That might be the case for big software tools but I want the user community to feel that if there is an annoyance that it can be fixed.
I might not agree with all the suggestions, and I might have to digest things a little bit (such as rotation, multiple graphs etc) but you should absolutely make the case.
David |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Thu Jan 05, 2012 11:30 pm Post subject: |
|
|
Hi David,
Thanks for being so accommodating. As you know, though, I'm pretty fussy so I don't know if what I find right will suit anyone else out there, so would rather not argue for the defaults to change. Also I've found that if I open a very old graph, things clearly move and shift about a bit, which I assume is the cumulative effects of some of the dealt settings changing over time, so I'd be reluctant to ask for changes on something which would affect very many people's existing files.
But in terms of an example, if I open a new empty file, and enter "Hello" as the x title, and "Hello" as the y xis title, there is clearly a lot more space between the y axis title and the axis.
I can see why you do that, because the numbers of each axis are horizontal and should take more space on the y-axis. But the allowance might be a little generous. e.g. enter 1,2 into each of the x and y data columns so that a line gets drawn and axis numbering appears, with one decimal place on each axis. The spacing between the y label and the numbers still seems a little wide to me, or, conversely, it might be too narrow on the x axis. |
|
| Back to top |
|
 |
David Site Admin
Joined: 25 Nov 2006 Posts: 1542 Location: Chapel Hill, NC
|
Posted: Fri Jan 06, 2012 3:18 pm Post subject: |
|
|
In the Axis settings you can set the space for the X and Y titles. It is right now vague as in "Narrow", "Medium",... The standard is good enough to accept up to about 2-3 digits or so. If you only have one digit then Narrow is better. In fact I recently tweaked the "Narrow" to make it smaller, from 2.4*font size to 2.0*font size. I might want to tie it to a different aspect of the font, since some fonts are slightly wider and some fonts have a slightly strange font size. Alignments are done based on the font metrics of the font, and there are a number of height metrics. Since fonts have different widths, there isn't really a font metric for a typical width. So 2.0*font size is something that looks good for Helvetica, Gill Sans and other fonts that I've tried, but it certainly might not work well for some fonts. And i want to know about those, with screen shots and files.
I don't want to adjust the spacing based on the actual data. That would make aligning different graphs a lot harder and I don't want things to jitter when you change the data continuously.
So be fussy. Try me. I bet that I'm fussier than you (yes, that is a challenge . I might have overlooked something, for example some combination of font type, font size, tick mark alignments, line widths, ... At some point I will make a call and say that it is unlikely enough that you should use the Text command, but I definitely want to tweak the heuristics. And hopefully the change is minimal enough that people would either not notice or accept it. But that rarely happens. Most of the time if I make a change DG automatically updates things when you open the file.
David |
|
| Back to top |
|
 |
SimonS
Joined: 05 Jan 2012 Posts: 4
|
Posted: Mon Jan 09, 2012 5:32 pm Post subject: |
|
|
Hi fellas,
Thanks very much for the great help. I won't pretend I understood all that you said, but I got enough to solve my problems!
I think I am getting the gist of the programme now. One thing I can't seem to manage however, is to put a space between groups of bars on the chart. I am trying to show how several recurring variables change at different points in time. I would like to have different times set for the x axis category i.e. day 1, day 2 etc. and have a space between them when displayed on the chart. Currently all my bars are sitting next to one another and the whole thing sort of blends together. How can I do this?
Thanks again for all the help.
Simon |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Mon Jan 09, 2012 5:56 pm Post subject: |
|
|
| SimonS wrote: | | One thing I can't seem to manage however, is to put a space between groups of bars on the chart. I am trying to show how several recurring variables change at different points in time. I would like to have different times set for the x axis category i.e. day 1, day 2 etc. and have a space between them when displayed on the chart. | Hi Simon, I don't use the bar graphs much but there seems to be a few examples in the templates (File>New From Default Templates>Bar Graphs) that should show how it is done. e.g. I think you're describing what the "Side by Side" templates show?
Cheers |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Mon Jan 09, 2012 6:03 pm Post subject: |
|
|
| David wrote: | | In the Axis settings you can set the space for the X and Y titles. It is right now vague as in "Narrow", "Medium",... The standard is good enough to accept up to about 2-3 digits or so. If you only have one digit then Narrow is better. In fact I recently tweaked the "Narrow" to make it smaller, from 2.4*font size to 2.0*font size. | A problem with the spacing settings is that they don't match each other on the x and y axes. e.g. from a new blank file, "Narrow" on y is slightly wider spaced than "Medium" on x. But often "Medium" on x still seems a bit tight, but the shift to the next level of "High" is really large (much more than Narrow>Medium). I don't think I'd ever use the higher settings, but would like a bit more control at the lower end.
Cheers,
Mike |
|
| Back to top |
|
 |
SimonS
Joined: 05 Jan 2012 Posts: 4
|
Posted: Mon Jan 09, 2012 6:26 pm Post subject: |
|
|
Yes Mike, that's exactly what I am trying to do. I just can't for the life of me work out how it's done!  |
|
| Back to top |
|
 |
Mike
Joined: 05 May 2008 Posts: 253 Location: Christchurch, New Zealand
|
Posted: Mon Jan 09, 2012 8:23 pm Post subject: |
|
|
| SimonS wrote: | Yes Mike, that's exactly what I am trying to do. I just can't for the life of me work out how it's done!  | So do you have each of your variables in a separate column?
If so, I think what DataGraph does is group the bars together by rows. i.e. for each variable, clump together a bar for each variable with the values in the first row, then draw a space, then have a bunch of bars for the second row.
It defaults to labelling the clumps with the row numbers (1,2,etc), but you can nominate a column that contains more meaningful labels (Jan, Feb, etc).
The easiest thing to do might be to paste in your variables over the existing columns in the template file that is closest to what you want and then work things out from there?
And it seems that you should be using the Bars rather than the Bar command, as it allows you to plot multiple variables. |
|
| Back to top |
|
 |
David Site Admin
Joined: 25 Nov 2006 Posts: 1542 Location: Chapel Hill, NC
|
Posted: Tue Jan 10, 2012 4:41 pm Post subject: |
|
|
| SimonS wrote: | | Currently all my bars are sitting next to one another and the whole thing sort of blends together. |
First, use the Bars command. The Bar command is not as functional, and really intended for a single column.
Spacing is as follows:
Right after the type is a variable that is by default 0.9. This is the width of the bar cluster. Since the bars are centered at 1,2,3,... the full width would be 1. When you have two or more columns you also get a choice to put between the bars in each cluster (default is 0). The width is the width of all of them together. Using the offset you can then shift the cluster left/right. For example if you want to use different bars command for the left and right bar.
| Mike wrote: | | "Narrow" on y is slightly wider spaced than "Medium" on x. |
I recently tweaked the Narrow to be more narrow than it was. Maybe this needs to be tweaked more or an additional setting put in. The issue is that I prefer presets over a field where you specify the width because that way things can scale with font size etc. You typically don't want to use the same space for x and y since the x height doesn't change while the y width changes. If you really want it the same height you can use the margin settings in the canvas layout. But here as always, the best thing is to send me a file that shows both what the default gave you and what you really would have liked. You should be able to do that by using the margin settings in the Canvas and the Text command to create the x/y labels.
David |
|
| Back to top |
|
 |
SimonS
Joined: 05 Jan 2012 Posts: 4
|
Posted: Tue Jan 10, 2012 5:31 pm Post subject: |
|
|
Thanks for that David, that has done the trick. I think I must have played with all the buttons except that one!
I am really impressed with the programme and the support from you guys. I have just registered my copy and I am looking forward to using it more.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|