4
$\begingroup$

I want to plot a very large dataset and therefore I need to use very small points or lines. It seems Thickness and Pointsize has a lower limit. Am I right?

po = RandomReal[{-1, 1}, {10000, 2}];
Graphics[{Thickness[0],Line[#] & /@ ({po[[1 ;; -2]], po[[2 ;;]]}\[Transpose])}]

example image

Graphics[{PointSize[0], Point[#] & /@ po}]

example image

Note that AbsolutePointSize and AbsoluteThickness give similar results.

$\endgroup$
3
  • 4
    $\begingroup$ Points can't be smaller than one pixel on your screen. $\endgroup$
    – Szabolcs
    Commented Sep 26, 2020 at 7:44
  • $\begingroup$ @Szabolcs Thanks, Therefore one needs to increase the size and play with the resolution? $\endgroup$ Commented Sep 26, 2020 at 8:07
  • 1
    $\begingroup$ This question on Mathematica's limits reminds me of this older question... $\endgroup$ Commented Sep 26, 2020 at 10:26

1 Answer 1

3
$\begingroup$

Based on @Szabolcs, It seems by increasing the size and change the resolution,

Magnify[
  Rasterize[
    Graphics[
      {Thickness[0],Line[#] & /@ ({po[[1 ;; -2]], po[[2 ;;]]}\[Transpose])}, 
       ImageSize -> 10000], 
    ImageResolution -> 100], 0.1]

we can find desire fine structure, enter image description here

I suggest Opacity also may be useful in some case,

Graphics[{Opacity[0.0251], Thickness[0],Line[#] & /@ ({po[[1 ;; -2]], po[[2 ;;]]}\[Transpose])}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.