-
Recent Posts
Recent Comments
- R.P. Churchill on TWSL Series 07: Discovery and Data Collection
- R.P. Churchill on A Simulationist’s Framework for Business Analysis: Round Two
- LN on A Simulationist’s Framework for Business Analysis: Round Two
- R.P. Churchill on Starting to Learn About the Java Memory Model
- R.P. Churchill on Multidimensional Arrays in Javascript
Categories
Meta
March 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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
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
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