18,768 reputation
350129
bio website
location Sydney, Australia
age 44
visits member for 2 years, 6 months
seen 15 mins ago

Moderator of Mathematica.SE and Celtic goddess.

Check out the Mathematica StackExchange Q+A site


Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Yes, I want to use PlotLabel for single panel plots like this one, but in the case of a multi panel graph as in that other question, I have to do it differently.
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
@mr.wizard i can't test EMF export until I'm back at work on Monday and near a Windows machine. Dragging the boundaries doesn't really scale to my application, where I want other users to be able to plot things with minimal fiddling.
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Ironically this is how I do it for multi panel graphs. See mathematica.stackexchange.com/a/7695/8
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Related but not duplicate. Neither ImageMargins nor ImagePadding put white space above the title in a way that prevents cropping in EMF export, and the line spacing issue is weird. Because I have a custom function to make the title and I use it in both PlotLabel and as a separate grid element, I want some consistency.
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
I tried ImageMargins but the text is still cropped, even though there is whitespace.
Jul
6
comment Selecting elements from a list one by one
This gives the correct output but there is no need to map the function part by part. Addition works element-by-element on lists (vectors, matrices, tensors).
Jul
6
comment Selecting elements from a list one by one
Where you are getting confused is with the idea that you need to do this "one by one". Mathematica does not need to do element-by-element arithmetic on lists "one by one" as if looping over the list. See this question for some useful parts of the Mathematica language that are more efficient and faster to write than the procedural way you are thinking about it now.
Jul
5
comment Alternatives to procedural loops and iterating over lists in Mathematica
@Jagra by all means add an answer or edit mine.
Jul
5
comment Assigning a particular value to array elements
yes, but please ask this is a separate question.
Jul
5
comment Assigning a particular value to array elements
@Daniel see my second answer which I have just posted.
Jul
5
comment Assigning a particular value to array elements
You definitely don't need that For loop. Xarray=A @@@ Tuples[Range[0, 9], 3] will do just as well, and it's much, much faster to type and to evaluate.
Jul
5
comment How can I open an Excel file and modify it in Mathematica?
@J.M. actually the undocumented TableView looks very spreadsheet-like.
Jul
2
comment Textures are not rendered in combined graphics
I am on 8.0.4. and Windows 7 - I get the same PDF (but not PNG) output but I think the first output is because the two Show statements are not in separate cells? In the notebook (and in PNG export) I get the nice-looking last graphic. Since the PDF and EPS versions are not vector graphics anyway, why not just export as PNG?
Jul
2
comment How can I easily eliminate the dependency of a stylesheet on a non-built-in stylesheet?
Nice, but I nearly downvoted you for the use of Comic Sans.
Jul
1
comment Custom function not returning any output
Yes the missing commas was the issue I came up with too.
Jul
1
comment Custom function not returning any output
This still gives the Thread::tdlen error for me, and I do get an output. I'm currently trying to redo this function using FoldList but getting different answers.
Jul
1
comment Custom function not returning any output
When I execute it in a fresh Mathematica kernel, I do get some output (a very large polynomial) and some error messages like (Thread::tdlen: Objects of unequal length in {0} {0,2} cannot be combined. >>). Have you tried this in a fresh kernel? Also, you are not localizing tmpSet. Try wrapping your function with Module. Also, try Fold instead of Do and Return.
Jun
30
comment Question about VertexTextureCoordinates
@ndroock1 I don't understand what you are trying to get - do you want a single copy of the picture, centered on that coordinate? In that case, you need Inset. I can do up another answer if that's what you wanted.
Jun
30
comment ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?
Sorry, this was the one that the comment " It's a good idea, but if one is drawing a ListLogPlot anyway one may as well just do that instead of using ScalingFunctions." was about
Jun
30
comment ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?
Yes, but I realised that isn't the issue - one actually has to rescale the points for the AxisOrigin: {Log@Length@test, -Max[test]}} in this case. Given that, it will probably be easier for me to just catch the value of the option and change the head of the plotting function to ListLogPlot or ListLogLogPlot depending on its value. The tick labels inside the plot area would also have to be fixed.