41,779 reputation
15109218
bio website
location
age
visits member for 1 year, 4 months
seen 49 mins ago
stats profile views 3,803
1:eJxTTMoPCtZiYGAwtEr1qggJ8c0PcC6Nyo10d8yvzAvPL8zM8jUoLvHxCXR19DMudndytLUFAIyYD9M=

Insanity is doing the same thing over and over again and expecting different results. — Michael Scott

Be insane if absolutely necessary.


Jun
3
revised Creating a slider that instead of setting, increases/decreases a variable
deleted 18 characters in body
Jun
3
answered Creating a slider that instead of setting, increases/decreases a variable
Jun
3
revised Creating a slider that instead of setting, increases/decreases a variable
added 4 characters in body; edited title
Jun
3
comment ShowLegend values
hopefully with your tireless efforts, we can rid this world of the PlotLegends plague!
Jun
3
comment SetOptions or other approach to imposing default styling of text in a BarChart Legend?
If it's a package, then why not supply a custom barchart function that applies the styling in the definition, thereby hiding it from the end-user?
Jun
3
comment How to take part (and then sum over) of specific level of an array?
@Mathieu Yes, you can do Apply[Total@Take[{##}, n] &, #, {Depth[#] - 2}] &@ try to sum over the first n. The Map version will be the same as Mr.Wizard's answer, except that instead of giving an explicit level, use {Depth@try-2} like in mine.
Jun
3
awarded  Nice Answer
Jun
3
comment How to take part (and then sum over) of specific level of an array?
Yes. {-2} only gets the level that is 2 deep. Using Depth as in my answer gets the deepest level, which is what the OP wanted. In this case {-2} happens to also be the correct depth, but for arbitrary expressions, it won't work. Compare the two with try = {{0, {a, b, c, {p, q, r}}}, {{d, e, f, g, {s, t, u}}, {h, i, j}}}
Jun
3
answered How to take part (and then sum over) of specific level of an array?
Jun
3
comment Image of input and output cells is not exported correctly
This should only be a comment...
Jun
3
comment Image of input and output cells is not exported correctly
How do you know they didn't take a screenshot?
Jun
3
comment Displaying a series obtained by evaluating a Taylor series
possible duplicate of How to inject an evaluated expression into a held expression?
Jun
3
comment How to construct a treemap using non-rectangles?
You also seem to have some custom definitions in there, which you might want to define — FlatJoin and Second...
Jun
3
comment How to construct a treemap using non-rectangles?
I'm glad you weren't disheartened by the reception and closure (and deletion) of your previous post on treemaps, and made an effort on the code (actually, a working implementation) — a hearty +1 for that! I wish more new users were like this :)
Jun
3
comment Issue with PathGraph
Daniel Lichtblau has, on several occasions, commented/answered saying that such bugs are often caused by some internal variable sorting or issues with hashing. There is no way to predict which ones will fail, but they fix them as they find them. Here's a rather nasty bug on versions 7 and below (fixed in 8 onwards) that's somewhat related. I'd suggest emailing to support@wolfram.com
Jun
3
comment How do I reorder vertices in a graph?
But that indeed is the case... With your code above, compare TopologicalSort[g] and VertexList[myGraph]. They're the same. The first element is the source and the last is the sink. I think you've just been looking at the values for the wrong graph.
Jun
3
revised How do I reorder vertices in a graph?
added 6 characters in body
Jun
3
comment How do I reorder vertices in a graph?
So I still don't understand the question... The two graphs are exactly the same, except that the second has the vertices in a different order and the layout is different. Did you want the vertex order to be different but the layout to be the same?
Jun
3
comment How to compute the genus of a Graph?
Related: mathematica.stackexchange.com/q/5381/5 It probably doesn't work for Graph objects, but maybe you could adapt it for your use
Jun
3
revised How can I use the Klingon alphabet symbols?
deleted 40 characters in body