cast-org / cwm-drawtool

An easy-to-use drawing tool based on SVG-Edit
3 stars 0 forks source link

Placement of X-Y axes #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In constructing the X-Y axis, axes should always be at the zero rather than 
always at the lower-left.  So for example if the Xmin = -10 and Xmax = +10, the 
Y axis should be in the middle of the canvas at X=0.

Original issue reported on code.google.com by bgoldow...@gmail.com on 7 Feb 2012 at 1:10

GoogleCodeExporter commented 9 years ago
What would you like to do with the additional numbers, create a sort of cross 
axis? Say you have x & y both with a min of -10 and a max of 10, then you would 
have sort of cross axis with 20 points each?

Original comment by RobertLe...@gmail.com on 7 Feb 2012 at 2:48

GoogleCodeExporter commented 9 years ago
I think 20 labels would be too crowded.  Better to label only half of them:
-10, -8, -6, ... 6, 8, 10 (same labels as in the current code for this case, 
actually).

Attaching an example of an OpenOffice chart of this sort.

Original comment by bgoldow...@gmail.com on 7 Feb 2012 at 6:16

Attachments:

GoogleCodeExporter commented 9 years ago
Check now, should be nearly there.

Original comment by RobertLe...@gmail.com on 9 Feb 2012 at 8:50

GoogleCodeExporter commented 9 years ago
The axes are now placed properly if they fall in the middle of the graph - 
thank you!

There's a case I didn't think about though - if the zero doesn't fall in the 
graph area at all.  Now if you choose Xmin=3 Xmax=10, the Y axis does not get 
drawn at all.  In this case it should indeed be placed at the left edge even 
though that's not the zero.

Original comment by bgoldow...@gmail.com on 9 Feb 2012 at 10:20

GoogleCodeExporter commented 9 years ago
This should be fixed now

Original comment by RobertLe...@gmail.com on 10 Feb 2012 at 1:07

GoogleCodeExporter commented 9 years ago
Looks good to me!

Original comment by bgoldow...@gmail.com on 10 Feb 2012 at 6:33