Tag Archives: canvas

Graph Project: Auto-Sizing Works — The Hard Part, Part One

Today’s updates involve ensuring that any number of axes can be properly placed on any side of the plotting area. Moreover, they will include space for tick marks that extend beyond the location of the axis itself. I also corrected … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Auto-Sizing Works — The Easy Part

Today I got the main parts of the auto-sizing going again, though you can see it’s for the simple case when there is never more than one axis on a side (the support is there, I just haven’t finished the … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Toward Getting Auto-Sizing Working Again

When I reworked the axes as separate objects I’ve been setting the plotting area and label locations by hand, as a hack/placeholder until I got all the pieces working again. I’ve still got a bit to go, but for now … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Labels Rotated Properly In Every Location

Today’s work was to get the tick value labels to handle rotation correctly, which they now do whichever side the labels are on. I also realized that I had cleverly defined rotations for the x-axis to go in the opposite … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Axes On Other Side Of Plot

Here I’ve modified the code to not only accept extra axes, but also to be able to place them on either side of the plot area. This is reflected in the location of the tick and axis labels relative to … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Multiple Axes

Now that the axis objects have been split out from the main graph object it’s a simple matter to add in as many as you need, as seen in the image. This example shows parallel axes stacked side to side, … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Splitting Axes Into Separate Objects

One of the problems with developing from a quick hack, as I have here, is that you sometimes have to take a step back and do some serious re-plumbing. In this case that means breaking things apart and defining axes … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Graph Project: Automatically Generating Axis Labels

Up until not the graph object has required that the parameters governing the generation of axis tick labels be specified explicitly. However, it would be nice for the graph to be able to generate reasonable value labels on its own … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment

Completing the Logarithmic Scale Implementation

Today I was able to finish the implementation of logarithmic scales on both axes. Even better, I added the ability to specify a major interval for each axis separately. This value is used to determine the number of cycles and … Continue reading

Posted in Software | Tagged , | Leave a comment

Rules for Drawing Graph Elements, Especially Axes

Since I don’t have time to work through much code today I thought I’d take a step back and define the rules I’ve implemented–or will implement–that govern the construction of the different elements of the graph object I’ve been developing. … Continue reading

Posted in Tools and methods | Tagged , | Leave a comment