40,449 reputation
560165
bio website
location
age
visits member for 2 years, 5 months
seen 30 mins ago

Nov
24
comment How to plot a certain surface? What is its parametric equation?
Very nice use of RotationTransform
Nov
21
comment How can I pass in parameters for multiple controls to a function that returns a Manipulate?
Try Evaluate[Sequence @@ Partition[{L1}, 3]]
Nov
20
comment How to get all possible orderings (equal ranks allowed) for given set of $N$ objects?
@aeiklmkv, with N=10 the whole list would require something like 100GB of storage. I'm not sure what you want to do with the orderings, but I think you will need an entirely different approach, e.g. generating them one-by-one or in batches, then discarding.
Nov
20
comment How to adjust the correct ImageSize between two plots
As for the size, you have set P0 to have a width of 550 pixels, and the complex plot to have a height of 550 pixels, with lots of image padding. If you want the frames to line up use the same settings for ImageSize and ImagePadding in P0 as you do in the complex plot.
Nov
20
comment How to adjust the correct ImageSize between two plots
To prevent padding the plot range, use PlotRangePadding -> 0
Nov
18
comment Removing numerically vanishing complex part within NDSolve
It would be good to provide a simple example demonstrating the problem, for people to test possible answers with.
Nov
18
comment What is wrong with my expression for compiling?
Just put the //Abs//Log into the Compile
Nov
15
comment Finding the area of a circle using monte carlo simulation
Look at RegionPlot[y <= Sqrt[1 - x^2], {x, -1, 1}, {y, -1, 1}]
Nov
14
comment Add a letter to a variable name from a list
You should take a look at Oleksandr's excellent CovariancePropagation` package
Nov
12
comment combining and comparing lists
@rm-rf, I nearly did too. I spent a good couple of minutes staring at the screen thinking "if only there was a function that attempts to transform the entire expression by applying a rule or list of rules in all possible ways, and returns a list of the results obtained" :-)
Nov
12
comment Calculate scalar potential from electric field
It's a differential equation so you need to use DSolve
Nov
12
comment Bug in RepeatedNull?
@Rojo, good example. Interesting that both {} /. s : {h ...} :> s and {} /. s : {_ ...} :> s behave as expected
Nov
11
comment Find a notebook I had open recently
I have to agree with belisarius and Sjoerd, use the OS search facility. E.g. on Windows 7 you just hit the windows button and type ext:.nb date:>25/10/2013 to instantly find all notebooks modified after 25th October.
Nov
11
comment Enlarge the axes text
Aaargh, my eyes...
Nov
11
comment Change base font for all graphics objects
Related: this and this
Nov
10
comment Rasterize uses default stylesheet if ImageSize is specified
Alexey, the Properties & Relations section of the Rasterize help file shows what I mean. In the first picture the text stays the same size (i.e. the same absolute size in pixels) when the ImageSize is changed, this is the behaviour I wanted. In the second picture the text magnifies in proportion to the image size, this is also what happens with your code. Neither behaviour is incorrect, they are just different.
Nov
10
comment Rasterize uses default stylesheet if ImageSize is specified
@Rojo, okay - that's what I see too.
Nov
10
comment Rasterize uses default stylesheet if ImageSize is specified
Since Mike's comment has received two upvotes I have taken that as community consensus that this is a bug and have tagged it as such. I will report it to WRI.
Nov
10
comment Rasterize uses default stylesheet if ImageSize is specified
This is a useful trick, but when I specify a reduced ImageSize in Rasterize I get the labels coming out demagnified.
Nov
9
comment Rasterize uses default stylesheet if ImageSize is specified
@Rojo, lol - I've just realised the workaround - Rasterize[Show[p, ImageSize -> 200]]