From: Arnd B. <arn...@we...> - 2005-11-01 00:08:13
|
Hi, what is the best way to plot some data with a line and symbols at the same time? (This would be similar to gnuplot's `plot sin(x) with linesp`). So far I have plotted the same data first with pyx.graph.style.line and then with pyx.graph.style.symbol. However, in the key for the graph two separate entries, e.g. "-----" and " o ", appear whereas I would like to have just one, e.g. like "--o--". Best, Arnd |
From: Michael S. <m-s...@us...> - 2005-11-01 10:10:47
|
Hello Arnd, On 01.11.05, Arnd Baecker wrote: > what is the best way to plot some data > with a line and symbols at the same time? use [graph.style.line(), graph.style.symbol()] as the styles-keyword in graphxy.plot() and see the "symbolline" example on the homepage. > So far I have plotted the same data first with > pyx.graph.style.line and then with pyx.graph.style.symbol. > However, in the key for the graph two separate entries, > e.g. "-----" and " o ", appear > whereas I would like to have just one, e.g. like "--o--". Michael. -- "A mathematician is a device for turning coffee into theorems" Paul Erdös. |
From: Arnd B. <arn...@we...> - 2005-11-01 11:06:36
|
Hi Michael, On Tue, 1 Nov 2005, Michael Schindler wrote: > Hello Arnd, > > On 01.11.05, Arnd Baecker wrote: > > what is the best way to plot some data > > with a line and symbols at the same time? > > use [graph.style.line(), graph.style.symbol()] as the styles-keyword > in graphxy.plot() > and see the "symbolline" example on the homepage. Sorry - that's (almost) what I tried and because of the "almost" it did not work. So I thought that it must be more complicated.... (the code was a bit mangled because I am trying to set up a thin wrapper around graphxy and the plot commands to reduce typing...) Many thanks, Arnd |