Tag Archives: graph project

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

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

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

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

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

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

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

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