Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I generate a bitmap out of data file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Sat Aug 23, 2014 3:53 pm    Post subject: How do I generate a bitmap out of data file Reply with quote

I'm sometimes doing data processing. Some of those data sets need to be somehow printed to be comprehensible (spotting patterns, changes occuring over time etc).
I can dump the data of interst into a CSV, fixed width or similarly simple format, and I need some non-interactive tool that would generate bitmaps out of those files.
It should allow at least creating bitmaps of predefined resolution, printing dots at selected possitions and changing color of selected dot by a value.

Any ideas what (Existing!) tool could I use for this task?
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Sat Aug 23, 2014 4:28 pm    Post subject: Reply with quote

If you already hav a tool to dump them in a csv file, why not dump them as a XPM file? XPM is a really straight forward format.

http://en.wikipedia.org/wiki/X_PixMap

IF you can not change the dump format, try a shell/perl/python/whatever script to create a xpm out of it.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Sun Aug 24, 2014 4:11 pm    Post subject: Reply with quote

Thanks, that looks really promissing. I can dump data in any arbitrary format, the point is how much effort it takes to implement that.
XPM seems to match "constant width column" format :lol: following a brief header, I think that's going to be simple enough.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum