Re: Linear mapping of xrange into a new range

Ethan A Merritt <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <6432982.1YRtYARcCi@stonelion>
On Tuesday, 09 July 2019 16:38:41 Dario Sanfilippo wrote:
> Hello, list.
> 
> I must be looking for the wrong keywords as I haven't found a solution for
> this yet.
> 
> I'm plotting the magnitudes of some FFT processing by feeding Gnuplot with
> a 1-column, comma-separated csv file.
> 
> So if I have 512 elements, the x-axis goes from 0 to 512, and the
> magnitudes of the corresponding elements are on the y-axis.
> 
> Is there a way to have the x-axis displaying the 0:512 range linearly
> mapped to, say, 0:24000?


set datafile separator comma
plot DATA using ($0 * 24000./512.):1 with impulses

	Ethan


> 
> Thank you so much for your help,
> Dario
-- 
entia non sunt multiplicanda praeter necessitatem

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.