summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-09 18:02:52 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-09 17:50:06 -0700
commitcb8198b5243df425b6baa4d2fa4b5edb619b2855 (patch)
tree8a443b9733376b084fd267a3604ee3068876d7f6 /profile.c
parentb794c23099f97cefd0a65b070fc9aa9dd5523e87 (diff)
downloadsubsurface-cb8198b5243df425b6baa4d2fa4b5edb619b2855.tar.gz
Plot the vertical ruler on the left of the profile.
Plot the numbers on the left of the profile. It seems that everythign is being plotted - But I can see that there are coordinate-errors on the code. ( the GTK one plots some curves below of the dive, but the Qt one is overlapping - probably the way that I'm using the gc information) Need to investigate a bit. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/profile.c b/profile.c
index 2dc82e37b..980db4f54 100644
--- a/profile.c
+++ b/profile.c
@@ -281,31 +281,6 @@ static void plot_minmax_profile(struct graphics_context *gc, struct plot_info *p
plot_minmax_profile_minute(gc, pi, 0);
}
-static void plot_depth_scale(struct graphics_context *gc, struct plot_info *pi)
-{
- int i, maxdepth, marker;
- static const text_render_options_t tro = {DEPTH_TEXT_SIZE, SAMPLE_DEEP, RIGHT, MIDDLE};
-
- /* Depth markers: every 30 ft or 10 m*/
- maxdepth = get_maxdepth(pi);
- gc->topy = 0; gc->bottomy = maxdepth;
-
- switch (prefs.units.length) {
- case METERS: marker = 10000; break;
- case FEET: marker = 9144; break; /* 30 ft */
- }
- set_source_rgba(gc, DEPTH_GRID);
- /* don't write depth labels all the way to the bottom as
- * there may be other graphs below the depth plot (like
- * partial pressure graphs) where this would look out
- * of place - so we only make sure that we print the next
- * marker below the actual maxdepth of the dive */
- for (i = marker; i <= pi->maxdepth + marker; i += marker) {
- double d = get_depth_units(i, NULL, NULL);
- plot_text(gc, &tro, -0.002, i, "%.0f", d);
- }
-}
-
static void plot_pp_text(struct graphics_context *gc, struct plot_info *pi)
{
double pp, dpp, m;