I want to create a graph with only the first quadrant. The values of x can only go from 0 to 9 and the values of y can only go from 0 to 9. In this graph, I want dots for (2,5), (3,3), (5,2) and (7,1). Above each pair specified I want dots above it. For example, the dots above (2,5) are (2,6), (2,7), (2,8) and (2,9). Does anyone know how to do this?
|
By tikz -- brute force:
Using
Using
|
||||
|
|
|
You don't really need any additional packages for such a plot, this is well within the capabilities of the base LaTeX format.
|
||||
|
|
|
Just 4 fun with the mix of PSTricks and PGF.
Animated version:
|
|||||||||
|
|
This solution addresses two different and unrelated issues of the question. 1. The Given Data:If I read the question correctly, the requirements are that the data is:
and that the points referred to as being above these points are to be determined. That is the above points are not part of the data. So, this solution provides a way of using just the given data:
and computing the above points. 2. A New Plot Method:Well, since the others covered the usual drawing methods of But this method could certainly be applied to using the other methods of plotting. So, given the above input data we obtain (points in blue show the given data, and the points in red is the extrapolated data).
Code:
|
|||
|
|
|
without specifieing the y coordinates because they are known:
with current
|
|||||||||
|









\documentclass{...and ending with\end{document}is also sufficient. – percusse Nov 10 '12 at 21:14!in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the!to turn it into an image again until you get more rep points. – percusse Nov 10 '12 at 21:15!prefixed. If you remove that it becomes a normal link and we can add it for you until you get enough reputation points. – percusse Nov 10 '12 at 21:29