Skip to main content
Avoid external link failure
Source Link
yode
  • 27.8k
  • 4
  • 69
  • 183

Regardless of AspectRatio, the Text boxes overlap.

xmlObject = Uncompress[FromCharacterCode[ Flatten[ImageData[Import["https://i.sstatic.net/AG4GB.png"], "Byte"]]]]; TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @700]  Cases[&@   Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"]Cases[xmlObject,  XMLElement[tag : _, _, value : _] :> (tag -> value), Infinity ] Infinity] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate the Text bounding box?

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @  Cases[   Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"],  XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate the Text bounding box?

Regardless of AspectRatio, the Text boxes overlap.

xmlObject = Uncompress[FromCharacterCode[ Flatten[ImageData[Import["https://i.sstatic.net/AG4GB.png"], "Byte"]]]]; TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700] &@ Cases[xmlObject, XMLElement[tag : _, _, value : _] :> (tag -> value),  Infinity] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate the Text bounding box?

added 4 characters in body; edited tags
Source Link
rm -rf
  • 89.8k
  • 21
  • 303
  • 498

Computing Textthe bounding boxes for Text objects

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"], XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate the Text bounding box?

Computing Text bounding boxes

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"], XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate Text bounding box?

Computing the bounding boxes for Text objects

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"], XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate the Text bounding box?

added figure
Source Link
István Zachar
  • 47.2k
  • 20
  • 147
  • 307

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio ->1> 1/3]&3, ImageSize -> 700]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"], XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ]  

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for TextText objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various TextText options.

Does anyone know how to at least conservatively approximate TextText bounding box?

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#,AspectRatio->1/3]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml","XMLObject"], XMLElement[tag:_,_,value:_]:> (tag-> value),Infinity ]  

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate Text bounding box?

Regardless of AspectRatio, the Text boxes overlap.

TreeForm[#, AspectRatio -> 1/3, ImageSize -> 700]& @ Cases[ Import["http://www.weather.gov/data/current_obs/KOAK.xml", "XMLObject"], XMLElement[tag:_, _, value:_] :> (tag -> value), Infinity ] 

Mathematica graphics

More generally, I've asked Wolfram Research, Inc. about exposing bounding box coordinates for Text objects so that layout manager or engine can test overlap or compute tilings or disjoint positioning, but it appears to be complicated by the various Text options.

Does anyone know how to at least conservatively approximate Text bounding box?

Tweeted twitter.com/#!/StackMma/status/190502654747754496
added 20 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
Source Link
alancalvitti
  • 15.3k
  • 3
  • 29
  • 97
Loading