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

  • SEARCH
  • Home
  • 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 9005387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:07:53+00:00 2026-06-16T01:07:53+00:00

With the help of sankey-toolbox in Matplotlib , we can plot sankey-diagrams automaticly: The

  • 0

With the help of sankey-toolbox in Matplotlib, we can plot sankey-diagrams automaticly: The position of a sankey-object is automaticly calculated based on the position of its prior-object and cannot be given manually; and when a sankey-diagram is initialized, the position of the first sankey-object will be assigned with the input of an axis. (the (0,0)-point will be the center-point of this object)

And Here is the situation: i want to draw two sankey diagrams with a given y-offset, and several ports of the two diagrams should be connected. Therefore are two coordinate systems with y-offset in the same subplot required. I have tried the ‘add_axes‘ method, but with this method a new subplot is created and there will be a graphic scaling problem.

Now this is the question: Is it possible to create a new coordinate system with a given y-offset, without creating subplot?

  • 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-06-16T01:07:54+00:00Added an answer on June 16, 2026 at 1:07 am

    Not really a complete answer, but it might help you to find the solution:
    sankey.add() supports a transform keyword argument. Depending on your figure, create a new transform instance, and use it for the shifted part of your figure:

    offset = transforms.ScaledTranslation(0.0, 0.5, fig.dpi_scale_trans)
    new_transform = ax.transData + offset
    sankey.add(flows=[-0.25, 0.15, 0.1], fc='#37c959', label='two',
               orientations=[-1, -1, -1], prior=0, connect=(0, 0),
               transform = new_transform)
    

    In order to create the new transform, the helper function matplotlib.transforms.offset_copy() may also be useful:

    new_transform = offset_copy(ax.transData, fig=fig,
                                x = 0.05, y=0.10, units='inches')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Help, I can't function without Resharper . All of a sudden my Alt +
Help, can anyone give me any pointers as too how and install StarTeam 2006
Help with this criteria ? Users can be able to add as many Names
Help with the linq query to select the object where each date only has
Help please. How can I format the DateTime column in SQLServer 2005 to store
Help, if you can- The situation: http://foobar.com includes a remotely hosted javacript file (
Help , How can you detect whenever the power cord is unplugged from electrical
Help, can anyone help out and explain the purpose of the Rhino Mocks 'Record'
help(unicode) prints something like: class unicode(basestring) | unicode(string [, encoding[, errors]]) -> object ...
Help, I'm deperate..i can't continue my app because of this: I have setup one

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.