I am trying to draw 2 somewhat complicated graphs with pgfplots but having a hard time. The first graph I am trying to draw is this graph:
Desmos version of it is available here
Issue with this is when I do \addplot[thick, black, samples=200, domain=0:2]{6 x + 2 y <= 19}; (for example) pgfplots does not like the fact that I have y in my equation. I have no idea how can I circumvent this or fix this as I really couldn't find any posts about this.
\begin{axis}[axis lines=center,
xlabel=$x_{1}$,
ylabel=$x_{2}$,
xmin=-1,
xmax=4.5,
ymin=-1,
ymax=5.5,
xtick distance=1,
ytick distance=1,
clip=false,]
\addplot[name path=A, thick, black, samples=200, domain=0:4]{6 x + 2 y <= 19};
\addplot[name path=B, thick, black, samples=200, domain=0:4]{2 x + 3 y <= 13};
\end{axis}
\end{tikzpicture}
The other graph I've been attempting to draw is this:
Issue here is that I am unsure how to draw such a graph where the x and y axis deal with fractions like \frac{13}{3} or \frac{13}{4} etc.
I'd really appreciate any guidance I can get regarding these 2 graphs. Thanks in advance.


[pgfplots] inequalityhere on TeX.SX gives several results that should be more than enough to solve your problem. Therefore I tend to close the question as duplicate. – Stefan Pinnow Feb 02 '21 at 18:04yon the other side of the equation. So it'sy \ge x + 5instead of6x + 8y \le 11for example. I'll still give it a read, but yeah. – Arszilla Feb 02 '21 at 18:23