Group Abstract Group Abstract

Message Boards Message Boards

Why "GraphicsGrid" wipe axes numbers out?

Posted 3 years ago

enter image description here

Hello, I find that GraphicsGrid will wipe the axis numbers of the diagrams. For example:

GraphicsGrid[
 Partition[
  Graphics[{Polygon[#], 
      AxisObject[{"Horizontal", 0, {-0.85, 2}}, 
       TickPositions -> {{-0.5, 2, 0.5}}], 
      AxisObject[{"Vertical", 0, {0, 0.55}}], 
      TickPositions -> {{0, 0.5, 0.2}}}, 
     AspectRatio -> 1] & /@ {{{-0.5411193272437292`, 
      0.45`}, {-0.45333333333333325`, 0.25`}, {-0.45333333333333325`, 
      0.05`}, {0.5898015984955335`, 0.05`}, {1.0364884666666667`, 
      0.25`}, {0.44075416666666656`, 0.45`}}, {{-0.4464228303421147`, 
      0.45`}, {-0.560696081412194`, 0.25`}, {-0.560696081412194`, 
      0.05`}, {0.39154534862329055`, 0.05`}, {1.8938491086956517`, 
      0.25`}, {0.5341209239130434`, 0.45`}}, {{-0.7466619803641336`, 
      0.45`}, {-0.5966592231298113`, 0.25`}, {-0.5966592231298113`, 
      0.05`}, {0.7692388676203906`, 0.05`}, {1.5854306607142854`, 
      0.25`}, {0.6418111979166669`, 0.45`}}, {{-0.742066550674206`, 
      0.45`}, {-0.58201871657754`, 0.25`}, {-0.58201871657754`, 
      0.05`}, {0.7788716502115656`, 0.05`}, {1.7694592500000004`, 
      0.25`}, {0.60461328125`, 0.45`}}, {{-0.7262866913650614`, 
      0.45`}, {-0.610017730747954`, 0.25`}, {-0.610017730747954`, 
      0.05`}, {0.7327682505714702`, 0.05`}, {2.046405886206897`, 
      0.25`}, {0.6587561781609195`, 0.45`}}}, UpTo[2]]]

The axes numbers are missing.

POSTED BY: Zhenyu Zeng
2 Replies
Posted 3 years ago

I don't know how to replace AxisObject with Ticks and AxesOrigin as they seem different in different situations.

POSTED BY: Zhenyu Zeng
Posted 3 years ago

Looks like a bug to me. Seems like GraphicsGrid cannot handle AxisObject. Try using Ticks, AxesOrigin instead.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard