I want to graph 8 inequalities and a number line, like I show below:
Note that it's different from plotting the inequalities themself, like it would be plotting x<2 for a x-number line (that is, it's redundant to have the inequality expression itself in the graph). In my case, for a specific range of my number line variable multiple inequalities may hold. Perhaps the closest question to mine is: Graphing a non-linear inequality? (see highest score answer).
Required specifications:
- Horizontal layout: I need my graph to be in horizontal layout and occupy the whole page so that it's better readable (since I need to fit the inequality themself in the graph);
- Number line at the bottom: I need the 8 inequalities to be above the number line, not some above and some below;
- Clarity: I need to display the 8 inequalities in the clearest way possible (is what I show in the picture the clearest way in my case or something like the output in Graphing a non-linear inequality? would be better? If the latter is more clear, how to adapt the script to my case? Perhaps you can show me a MWE with 3 or 4 inequalities).
MWE (sorry for the bad formatting):
\documentclass[tikz,border=5mm]{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{plotmarks}
\begin{document}
%---------------------------------------------------------
\begin{tikzpicture}
\coordinate (A) at (3,0);
\coordinate (B) at (7,0);
\coordinate (LE) at (0,0);
\draw[->, line width=0.1mm] (0,0) -- (10,0) ;
\path node[mark size=3pt,color=black] at (A) {\pgfuseplotmark{*}} node at (A) [below=5pt] {$\sigma_d$} node[mark size=3pt,color=black] at (B) {\pgfuseplotmark{*}} node at (B) [below=5pt] {$\sqrt{2}\sigma_d$};
\draw[->, line width=0.5mm] ([yshift=1cm]A) -- node[above] {$\partial f/\partial x$}([yshift=1cm]LE);
\draw[->, line width=0.5mm] ([yshift=2cm]B) -- node[above] {$\partial f/\partial y$}([yshift=2cm]LE);
\end{tikzpicture}
%---------------------------------------------------------
\end{document}
Questions:
- Is it better to have my inequalities on top of the arrows themselves (like in this MWE) or on the right side of the number line, stacked on top of each other like in the solution from my link above?
- Is it better to have multiple inequalities on a single arrow (to reduce the number of arrows since some of them hold for the same range) or is it better to have one arrow for each inequality like in the picture I posted?
- How to add the variable name "sigma_v" at the right end of the number line?
Thanks a lot!



\inkinspicmacro to load the image with text together in OpTeX or some similar in LaTeX. – wipet Mar 18 '24 at 06:30