19,583 reputation
354135
bio website
location Sydney, Australia
age 44
visits member for 2 years, 8 months
seen 2 hours ago

Moderator of Mathematica.SE and Celtic goddess.

Check out the Mathematica StackExchange Q+A site


Jul
27
comment Excel Headers --> Mathematica
(2) and (3) are separate questions from this one - please post them as another question(s). You'll need to Transpose your data if you have imported it as described in this question so why not just Import it normally as data = Rest@Import["myfile.xls",{"Sheets","Data"}]?
Jul
27
comment How to find pixel position in a graph , given two points?
Hello @hay, welcome to Mathematica.SE! I fixed up your missing parenthesis and tweaked some formatting. However, you have both p1 and P1 in your answer. Mathematica is case-sensitive. Do you mean for them to be the same?
Jul
27
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Finally got around to testing this. I think it's the vagaries of the EMF coordinate rounding that cause it to happen. Your solution #1 works on the cropping (but not the linespacing), but you don't need to specify the Pane width. Labeled isn't really an option because I want to allow users to use the PlotLabel option for unusual graph types that aren't covered by my custom plotting functions.
Jul
27
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
@Mr.Wizard it is surprising - but it turns out that my custom plot in my real application already had ImageMargins set and it wasn't helping. The whitespace was there, and the text was cropping at the edge of the image adjoining that image margin.
Jul
27
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
This got me on the way to a solution, but using Graphics and AspectRatio requires too much knowledge about the dimensions of the title for my purposes.
Jul
27
comment Can I stop edges in graphs from drawing on top of the vertices?
@belisarius yeah, +1 for the smilies and the solution. I probably should have specified that we have a HighlightGraph in there. My colleague is actually doing this and he is a new Mathematica user, so anything that allows us to keep it as a Graph rather than a GraphPlot, at least up to final rendering, is preferable in our specific application.
Jul
27
comment Can I stop edges in graphs from drawing on top of the vertices?
Really nice solution, thanks! I accepted @Szabolcs' because it was sufficient for our purposes.
Jul
27
comment Can I stop edges in graphs from drawing on top of the vertices?
@belisarius - it's a different problem.
Jul
27
comment Can I stop edges in graphs from drawing on top of the vertices?
This is a similar solution but the problem is actually different.
Jul
24
comment Code Readability and Object-Oriented Code
You might find your code marginally less unwieldy if you type circ[[2,1]] instead of circ[[2]][[1]].
Jul
15
comment DynamicModule with constant image size
@RChai let me second Rojo's welcome, and suggest that you register your account. That way, any upvotes from your future questions and answers will be added to the one you have from this question.
Jul
14
comment Turning evaluation off
Welcome to Mathematica.SE, by the way! Please consider registering your account so that the upvotes you get on any future questions and answers will be added to the ones you received for this one.
Jul
14
comment How to import numbers or protected signs from .txt?
Welcome to Mathematica.SE Joezens! Please consider registering your accounts, so that the upvotes you get on any future questions and answers add to the ones you received here.
Jul
14
comment Turning evaluation off
In principles you could use Map to wrap ToString around the expressions at each side of each rule, but if you take the quote marks off, Mathematica interprets "C1.4.4" as C1 * 0.4 * 0.4, i.e. 0.16 C1. There should be some version of HoldForm that works but it seems almost impossible to define a function that performs the transformation without releasing Hold somewhere along the line.
Jul
14
comment Learning Finance with Mathematica
@R.M they are assumed in the two books referenced - certainly Shaw and as far as I can tell, Stojanovic. My impression (and I am not working in an investment bank) is that many shops still just go with the Gaussian. The VaR built into Basel II pretty much assumes it too.
Jul
10
comment Internal Representation of ?name and ??name
@term-rewritica - you have Wagner's book? You lucky thing - mine was borrowed by someone years ago and never seen again.
Jul
9
comment DateList not using current year when a year is not specified
I get the same 1900 result (Mma 8.0.4, Win7) and yes, the documentation does explicitly say that. Interestingly the documentation example of DateList[{"2/15", {"Month", "Day"}}] has an integer zero in the seconds position, instead of 0.. Very odd! I think you might have found a bug.
Jul
6
comment ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid
Can solution 1 be used without specifying the size of the Pane?
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.