From bterkuile at gmail.com Fri Feb 27 02:03:00 2009 From: bterkuile at gmail.com (Benjamin ter Kuile) Date: Fri, 27 Feb 2009 08:03:00 +0100 Subject: [Tioga-users] Markers are line typed Message-ID: <6680778a0902262303m1994cdc1v2fc3ce4788ac2883@mail.gmail.com> Hello, I'm starting to become a fan of Tioga. Using it for my master thesis. I ran into a minor issue. When comparing data I use the options: t.show_plot_with_legend => t.show_plot => each_line or data => t.show_polyline or t.show_marker It all seemed to work like a charm, but when a marker is after a line with a line type (dotted for example), the markers (tested: CircleOpen and BoxOpen) are dotted as well. This might be a feature, but by trying to avoid this effect, I put t.line_type = Line_Type_Solid before the t.show_marker statement, which resulted in a plot with solid line markers, but in the legend, the marker is still dotted. Plotting the markers first or after solid lines solves the issue. Regards, Benjamin -------------- next part -------------- An HTML attachment was scrubbed... URL: From paxton at kitp.ucsb.edu Sat Feb 28 17:53:22 2009 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Sat, 28 Feb 2009 14:53:22 -0800 Subject: [Tioga-users] Markers are line typed In-Reply-To: <6680778a0902262303m1994cdc1v2fc3ce4788ac2883@mail.gmail.com> References: <6680778a0902262303m1994cdc1v2fc3ce4788ac2883@mail.gmail.com> Message-ID: <1A9BF662-2DC1-4BE4-A7EE-3422F8FD8228@kitp.ucsb.edu> Hi Benjamin, This turned out to be 1 part feature and 1 part bug! The feature part is that markers are graphics elements and reflect the settings like line_type. The CircleOpen and BoxOpen markers are drawn by strokes, and if you have the line_type set to dashed, then the markers will be dashed. If you want to limit the effects of doing something like changing the line_type, use the "context" method: t.context { t.line_type = .... t.show_polyline.... } The bug was in the routine that shows legends. It was failing to save/restore line properties so even with the markers correctly plotted as solid lines, in the legend they would be dashed because they were following a dashed line in the legend. That will be fixed in the next release. Thanks, Bill On Feb 26, 2009, at 11:03 PM, Benjamin ter Kuile wrote: > Hello, > > I'm starting to become a fan of Tioga. Using it for my master > thesis. I ran into a minor issue. When comparing data I use the > options: > t.show_plot_with_legend => t.show_plot => each_line or data => > t.show_polyline or t.show_marker > > It all seemed to work like a charm, but when a marker is after a > line with a line type (dotted for example), the markers (tested: > CircleOpen and BoxOpen) are dotted as well. > > This might be a feature, but by trying to avoid this effect, I put > t.line_type = Line_Type_Solid before the t.show_marker statement, > which resulted in a plot with solid line markers, > but in the legend, the marker is still dotted. > > Plotting the markers first or after solid lines solves the issue. > > Regards, > > Benjamin > _______________________________________________ > Tioga-users mailing list > Tioga-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tioga-users