Here is the problem: I have two implicit functions F and G. I am trying to find a way to plot them using SymPy.
My question is, how to adjust ticks on x- and y-axis, so I can see a crossing point of my functions? How to add visual quality to my plot?
I’ve tried to add “points” to increase the quality, but it didn’t work well. I have no idea how to deal with ticks though


With quality, I assume you would like to improve the smoothness of the lines. Sadly, the way
sympy.plotting.MatplotlibBackendis coded makes it impossible to improve it.To achieve a better result you should use SymPy Plotting Backend, which solves a tons of problems affecting
sympy.plotting:Note that I used
n=301when plotting the second expression (odd number of discretization points). Given your current ranges, it will place a discretization point onx=0andy=0, making the visualization more accurate.SymPy Plotting Backend by default uses standard Matplotlib layout, which places the ticks on the bottom and on the left of the figure. This make your intersection point visible.
Final note: next time copy your code as text, not as an image.
EDIT to satisfy user request:
In this code block I'm going to plot all solutions where the two curves intersect each other. Note that:
real=True. This will compute real solutions.list_2dto plot list of points.rendering_kwis a dictionary of keyword arguments that will be provided to matplotlib to customize the appearance. In this case, it will be passed to Matplotlib'splotfunction.Instead, in this code block I'll modify the axis ticks. Note that:
ticksandticks_labels. You can be creative withticks_labels, as long as it has the same number of elements ofticks.plt.show()to visualize the plot.As you can see, adding ticks with a step of 0.5 is going to make the ticks very difficult to read. You will have to play with the step.