Tag Info

New answers tagged

3

In an HTML file, the appearance (and size) of elements is largely controlled by CSS properties and files, and by the users' browsers, which can choose to override the appearance (and the content, too). Mathematica exports the contents of a grid as an HTML table: <table class='Output'> <tr style='vertical-align: baseline;'> <td ...


6

You are asking: Is there a simple option to add additional grid lines to the automatic ones? Thank you! Well, I couldn't think of one, but out of curiosity I tried another approach (different to the Epilog I'd also rather choose). It seems to work pretty ok, so I figured I might share. As the other answer is much more versatile, I didn't spend too ...


5

Not sure why J.M.'s comment doesn't meet your requirements: DateListPlot[ RandomReal[1, 20], {2000}, Joined -> True, PlotRange -> All, GridLines -> {Automatic, None}, Epilog -> {Directive[Thick, Magenta], Line[ {Scaled[{0, -1}, {{2010, 1, 15}, 0}], Scaled[{0, 1}, {{2010, 1, 15}, 0}] }]}] This incorporates Scaled, ...


7

Slightly less dirty: d = 10; t = Table[x, {d}, {d}]; Grid[MapAt[Item[#, Frame -> White] &, t, Tuples[{Range@d, {-2, -1}}]], Dividers -> {#, #} &@Thread[(# -> Black &)[Range[3, d, 2]]]]


3

This is something of a hack because I had to adjust the Dashing parameters by eye, but maybe it will give you an idea you can chew on. t = Table[x, {10}, {10}]; Grid[t, Dividers -> {{{{True, False}}, {-1 -> False, -3 -> False, 1 -> False}}, {{{Dashing[{170., 100.}], False}}, {-1 -> False, 1 -> False}}}]


2

There is a known-difficult problem in this: How to convert between various ItemSize/ImageSize units? Nevertheless: ItemSize: In Grid, w is measured in ems, and h in line heights. In GraphicsGrid, w and h are both measured in absolute printer's points. Pane: Pane[expr,{w,h}] makes the pane be w points wide, and h points high, shrinking the ...


1

Use Grid instead of GraphicsGrid



Top 50 recent answers are included