Skip to main content
added 266 characters in body
Source Link
OkkesDulgerci
  • 10.9k
  • 1
  • 19
  • 40

Here is a starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  
 

Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
  Point /@ pts}, Frame -> True]

enter image description here

Edit:

dist = 0.1;
Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.5, 0}] & /@ pts, 
  Line[{{#[[1]], #[[2]] - dist}, {#[[1]], #[[2]] + dist}}] & /@ pts}]

enter image description here

Here is a starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  
 

Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
  Point /@ pts}, Frame -> True]

enter image description here

Here is a starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  
 

Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
  Point /@ pts}, Frame -> True]

enter image description here

Edit:

dist = 0.1;
Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.5, 0}] & /@ pts, 
  Line[{{#[[1]], #[[2]] - dist}, {#[[1]], #[[2]] + dist}}] & /@ pts}]

enter image description here

Layout
Source Link
halirutan
  • 113.4k
  • 7
  • 266
  • 479

Here is a starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  
 

       Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
   Point /@ pts}, Frame -> True]

enter image description here

Here is starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  


       Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
   Point /@ pts}, Frame -> True]

enter image description here

Here is a starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  
 

Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red,
  Point /@ pts}, Frame -> True]

enter image description here

deleted 26 characters in body
Source Link
OkkesDulgerci
  • 10.9k
  • 1
  • 19
  • 40

Here is starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];
   


       Graphics[{Line[{{0, 0}, {4, 4}}], Text["AText[#, =# (0,0)",+ {0.53, 0}], 
  Text["B& =/@ (4,4)"pts, {4.5Red, 
 4}], Red, Point /@ pts}, Frame -> True]

enter image description hereenter image description here

Here is starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];
 


   Graphics[{Line[{{0, 0}, {4, 4}}], Text["A = (0,0)", {0.5, 0}], 
  Text["B = (4,4)", {4.5, 4}], Red, Point /@ pts}, Frame -> True]

enter image description here

Here is starting point.

x = y = Subdivide[4, 5];
pts = Transpose[{x, y}];  


       Graphics[{Line[{{0, 0}, {4, 4}}], Text[#, # + {0.3, 0}] & /@ pts, Red, 
   Point /@ pts}, Frame -> True]

enter image description here

Source Link
OkkesDulgerci
  • 10.9k
  • 1
  • 19
  • 40
Loading