Skip to content

color coded the grain #270

Answered by rquey
asmaaharfoush asked this question in Q&A
Jul 20, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

The easiest and more versatile way is to export the cell sizes using -statcell, use this file to create a cell color file, and use the cell color file in -V:

$ neper -T -n 1000 -statcell diameq
$ awk '{if ($1<0.11) print "red"; else if ($1<0.13) print "green"; else print "blue"}' n1000-id1.stcell > cell-colors
$ neper -V n1000-id1.tess -datacellcol "col:file(cell-colors)" -print img

Also how I can generate three different sizes using the same morpho

Not sure what you mean, but if you want the sizes to follow a unique distribution, you can typically use -morpho diameq:lognormal(...), and if you want the sizes to follow different distributions, you can sum these distributions, as in -mo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rquey
Comment options

You must be logged in to vote
3 replies
@Ali141272
Comment options

@rquey
Comment options

@Ali141272
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants