Question: ‎I want to grid a square area and the distance between lines aren't equal.

the distance between lines are as function of COS(X) or SIN(Y) or X(1-X).

Is it possible to design the mention picture?

[![enter image description here](https://i.stack.imgur.com/DKSmf.png)](https://i.stack.imgur.com/DKSmf.png)

```
\documentclass[tightpage]{standalone}‎
‎\usepackage{varwidth}‎
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\pagestyle{empty}

\begin{tikzpicture}[scale=.9,every node/.style={minimum size=1cm},on grid]

    %slanting: production of a set of n 'laminae' to be piled up. N=number of grids.
    \begin{scope}[
            yshift=-83,every node/.append style={
            yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
            ]
        % opacity to prevent graphical interference
        \fill[white,fill opacity=0.9] (0,0) rectangle (5,5);
        \draw[step=4mm, black] (0,0) grid (5,5); %defining grids
        \draw[black,very thick] (0,0) rectangle (5,5);%marking borders
        %Idem as above, for the n-th grid:
    \end{scope}
\end{tikzpicture}

\end{document}

```

Answer: 
Something like this? 

[![enter image description here](https://i.stack.imgur.com/H83Qa.png)](https://i.stack.imgur.com/H83Qa.png)

```
\documentclass[tikz,border=2mm]{standalone} 
\begin{document}
\begin{tikzpicture}

\coordinate (origin) at (0,0);

\foreach \i [evaluate=\i as \xi using \i*(10-\i)/10] in {1,2,...,10}{
    \draw ([xshift=\xi cm]origin)--++(90:2.5cm);
    \draw ([yshift=\xi cm]origin)--++(0:2.5cm);
    }
\end{tikzpicture}
\end{document}

```
```
    \documentclass[tikz,tikz-3dplot, border=2mm]{standalone} 
\begin{document}
\begin{tikzpicture}[scale=3]
   \begin{scope}[
            yshift=-83,every node/.append style={
            yslant=0.5,xslant=-1},yslant=0.5,xslant=-1 ]
\coordinate (origin) at (0,0);
\foreach \i [evaluate=\i as \xi using 0.5*(1-cos((\i-1)*180/(10-1)))] in {1,2,...,10}{
    \draw ([xshift=\xi cm]origin)--++(90:1cm);
    \draw ([yshift=\xi cm]origin)--++(0:1cm);
    }‎‎

\end{tikzpicture}
\end{document}

```

[![enter image description here](https://i.stack.imgur.com/gkHCg.png)](https://i.stack.imgur.com/gkHCg.png)