Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a command line tool for data visualization and analysis? [closed]

Tags:

linux

plot

I'm searching for a command line tool (for linux) to generate plots out of a data file. I tried to play with gnuplot at first but it's curve fitting capabilities aren't that good.

Then I tried R but I couldn't find a way to write a vector (little arrow over the sign) or a thermal average (\left \langle \right \rangle in LaTeX).

I there some hidden plugin for any of those I couldn't find to complete the task?

like image 475
Yotam Avatar asked Mar 10 '11 13:03

Yotam


People also ask

Which one of the following commands is used for visualization of data?

These commands include chart, contingent, high light, top, rare, stats, time chart, top. With these commands, data which is search result is required for visualization such as column, line, area, pie charts.

Which is the best tool to quickly visualize data?

The best data visualization tools include Google Charts, Tableau, Grafana, Chartist. js, FusionCharts, Datawrapper, Infogram, ChartBlocks, and D3. js. The best tools offer a variety of visualization styles, are easy to use, and can handle large data sets.

Which Microsoft tool is visualizing data?

Microsoft Power BI is a powerful data visualization tool and a very popular one. It is a cloud-based software which is available in two versions; Power BI Desktop and Power BI Mobile. Microsoft Power BI is well known for its easy-to-use functionality for data preparation and data visualization.

What is the easiest data visualization tool to use?

Google Chart is a powerful, easy to use and an interactive data visualization tool for browsers and mobile devices. It has a rich gallery of charts and allows you to customize as per your needs.


1 Answers

Here's one way you could make one. Input files should be formatted with one or more columns of data. If there are two or more columns, the first column is used as the X in an X,Y plot.

#! /usr/bin/env python

import sys
import matplotlib.pyplot as pyplot

for filename in sys.argv[1:]:
   with open(filename,'rt') as sf:
      table = []
      for line in sf: table.append( [float(val) for val in line.split()] )
      table = [ row for row in table if len(row) ] ## remove empty rows
      if len(table[0]) == 1 : pyplot.plot( [y[0] for y in table ] )
      for x in xrange(1,len(table[0])): pyplot.plot( [ y[0] for y in table ], [ y[x] for y in table ] )
pyplot.show()
like image 125
Brent Bradburn Avatar answered Oct 19 '22 00:10

Brent Bradburn