Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 676269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:54:34+00:00 2026-05-14T00:54:34+00:00

I would like to plot implicit equations (of the form f(x, y)=g(x, y) eg.

  • 0

I would like to plot implicit equations (of the form f(x, y)=g(x, y) eg. X^y=y^x) in Matplotlib. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:54:34+00:00Added an answer on May 14, 2026 at 12:54 am

    I don’t believe there’s very good support for this, but you could try something like

    import matplotlib.pyplot
    from numpy import arange
    from numpy import meshgrid
    
    delta = 0.025
    xrange = arange(-5.0, 20.0, delta)
    yrange = arange(-5.0, 20.0, delta)
    X, Y = meshgrid(xrange,yrange)
    
    # F is one side of the equation, G is the other
    F = Y**X
    G = X**Y
    
    matplotlib.pyplot.contour(X, Y, (F - G), [0])
    matplotlib.pyplot.show()
    

    See the API docs for contour: if the fourth argument is a sequence then it specifies which contour lines to plot. But the plot will only be as good as the resolution of your ranges, and there are certain features it may never get right, often at self-intersection points.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to draw a 3D carpet plot with Python Pylab or matplotlib.
I would like to plot a time series that look like this: what I
I would like to plot an implicit function of x and y: 1 -
I would like to plot this kind of data: X axis: dates Y axis:
I would like to plot discrete values in MATLAB like this: stairs() and stem()
I have a large real 1-d data set called r. I would like plot:
I would like to plot a heatmap on a table imported from MATLAB. The
I would like to plot a vertical line (I'd prefer any orientation, but I'd
I would like to plot y1 and y2 in the same plot. x <-
I would like to plot an image at a random position every time the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.