mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Draw pO2 profile last
This way it sits on top of the other partial pressure plots and is a bit easier to read. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									ef3735eafb
								
							
						
					
					
						commit
						9bcd21bf67
					
				
					 1 changed files with 25 additions and 25 deletions
				
			
		
							
								
								
									
										50
									
								
								profile.c
									
										
									
									
									
								
							
							
						
						
									
										50
									
								
								profile.c
									
										
									
									
									
								
							|  | @ -815,31 +815,6 @@ static void plot_pp_gas_profile(struct graphics_context *gc, struct plot_info *p | |||
| 
 | ||||
| 	setup_pp_limits(gc, pi); | ||||
| 
 | ||||
| 	if (partial_pressure_graphs.po2) { | ||||
| 		set_source_rgba(gc, PO2); | ||||
| 		entry = pi->entry; | ||||
| 		move_to(gc, entry->sec, entry->po2); | ||||
| 		for (i = 1; i < pi->nr; i++) { | ||||
| 			entry++; | ||||
| 			if (entry->po2 < partial_pressure_graphs.po2_threshold) | ||||
| 				line_to(gc, entry->sec, entry->po2); | ||||
| 			else | ||||
| 				move_to(gc, entry->sec, entry->po2); | ||||
| 		} | ||||
| 		cairo_stroke(gc->cr); | ||||
| 
 | ||||
| 		set_source_rgba(gc, PO2_ALERT); | ||||
| 		entry = pi->entry; | ||||
| 		move_to(gc, entry->sec, entry->po2); | ||||
| 		for (i = 1; i < pi->nr; i++) { | ||||
| 			entry++; | ||||
| 			if (entry->po2 >= partial_pressure_graphs.po2_threshold) | ||||
| 				line_to(gc, entry->sec, entry->po2); | ||||
| 			else | ||||
| 				move_to(gc, entry->sec, entry->po2); | ||||
| 		} | ||||
| 		cairo_stroke(gc->cr); | ||||
| 	} | ||||
| 	if (partial_pressure_graphs.pn2) { | ||||
| 		set_source_rgba(gc, PN2); | ||||
| 		entry = pi->entry; | ||||
|  | @ -890,6 +865,31 @@ static void plot_pp_gas_profile(struct graphics_context *gc, struct plot_info *p | |||
| 		} | ||||
| 		cairo_stroke(gc->cr); | ||||
| 	} | ||||
| 	if (partial_pressure_graphs.po2) { | ||||
| 		set_source_rgba(gc, PO2); | ||||
| 		entry = pi->entry; | ||||
| 		move_to(gc, entry->sec, entry->po2); | ||||
| 		for (i = 1; i < pi->nr; i++) { | ||||
| 			entry++; | ||||
| 			if (entry->po2 < partial_pressure_graphs.po2_threshold) | ||||
| 				line_to(gc, entry->sec, entry->po2); | ||||
| 			else | ||||
| 				move_to(gc, entry->sec, entry->po2); | ||||
| 		} | ||||
| 		cairo_stroke(gc->cr); | ||||
| 
 | ||||
| 		set_source_rgba(gc, PO2_ALERT); | ||||
| 		entry = pi->entry; | ||||
| 		move_to(gc, entry->sec, entry->po2); | ||||
| 		for (i = 1; i < pi->nr; i++) { | ||||
| 			entry++; | ||||
| 			if (entry->po2 >= partial_pressure_graphs.po2_threshold) | ||||
| 				line_to(gc, entry->sec, entry->po2); | ||||
| 			else | ||||
| 				move_to(gc, entry->sec, entry->po2); | ||||
| 		} | ||||
| 		cairo_stroke(gc->cr); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue