34,417 reputation
549142
bio website
location
age
visits member for 2 years
seen 5 hours ago

Jul
12
comment Building graph based on the cities connection?
@Alex, I'm on version 8.0.4. You could take a look at the ComputationalGeometry package, that has a DelaunayTriangulation function.
Jul
12
comment Building graph based on the cities connection?
@Alex, I'm not sure what you mean by that last comment.
Jul
12
comment Building graph based on the cities connection?
@Alex, oops my apologies - cd was a symbol I was using for the polygon - I've restored it to how it should be.
Jul
11
comment Partitioning with varying partition size
@JacobAkkerboom, interesting point! There must be special handling so that SetDelayed knows you are trying to set a downvalue for f rather than for Blank. I wonder if it is even possible to set a downvalue for Blank (in the unlikely event that you would ever want to...)
Jul
11
comment Is there an easy way to create a “IntensitySquaredCentroid” using ComponentMeasurements?
@nikie, or ImageApply[#^3 &, image] or even ImageAdjust[image, {0,0,3}]. I suggest you post your comment as an answer.
Jul
9
comment Graph rendering not working as expected
If it's a problem you can wrap the function in Hold and release it after the graphics expression is created: GraphPlot[{1->2,2->3,3->1},EdgeRenderingFunction->Hold[(Print["e ",##];Arrow[#1,0.1])&]]//ReleaseHold
Jul
8
comment PlotMarkers don't change colour for different lines
@MichaelE2, it looks like a rounding error thing - if you use 1/100 and 1/5 instead of 0.01 and 0.2 the bug goes away.
Jul
7
comment xkcd-style graphs
@tchronis, follow the link in the comment above yours.
Jun
30
comment Fitting a two-dimensional Gaussian to a set of 2D pixels
That is the full script, apart from the definition of data which I copied from the question. I suggest you step through the code one line at a time and make sure that mx, my, a, b, and c are all single numbers. I'm away from the computer this week, so that's about all the help I can offer at the moment. You could try asking in chat if anyone else can get it working.
Jun
27
comment Color scheme used by Colorize?
The Evaluate is not needed, just Colorize; will trigger the autoload.
Jun
26
comment ParametricPlot with DSolve does not show anything
Your ParametricPlot is working, but the aspect ratio is tiny. Try using the option AspectRatio -> 1
Jun
25
comment Plot image function together maintaining compatibility between their coordinate systems?
If you would rather have the image distort to match the aspect ratio of the plot, you could use Prolog -> Raster@Reverse@ImageData@im
Jun
25
comment Plot image function together maintaining compatibility between their coordinate systems?
The image pixels are square so you will need to use AspectRatio -> Automatic in your plot.
Jun
25
comment DictionaryLookup very slow
@Trollkemada, see my update.
Jun
25
comment DictionaryLookup very slow
@VincentTjeng, I tested it first on a single language and it seemed fast, then it was terribly slow when I mapped it over all the languages. So I used a Do loop with Print to see the results coming out one by one and it was clear that it got stuck on Hebrew.
Jun
25
comment How does ListPlot3D interpolate data?
This is a question of sampling, not interpolation. Plot3D is simply using a coarser mesh than ListPlot3D. To get similar results you could tell Plot3D to use a similar mesh with the options PlotPoints -> 100, MaxRecursion -> 0
Jun
24
comment How does ListPlot3D interpolate data?
Could you provide an example data set, or code to generate one?
Jun
22
comment Reverse after ImageData?
I think that's much clearer now. +1
Jun
22
comment Reverse after ImageData?
I think you mean that images don't use regular Cartesian coordinates. The "first" row of an image is the top row, like matrices. Consider Through@{Image, MatrixPlot, Graphics@Raster@# &, ListDensityPlot}@ IdentityMatrix@5
Jun
22
comment Keeping Integrate from making unnecessary assumptions
@m_goldberg That's also an issue with the original ConditionalExpression result. You can use Limit to get the correct result at a=0.