Coder Social home page Coder Social logo

Comments (6)

kklmn avatar kklmn commented on June 25, 2024

Hi,
The current xrt version is compatible with this new behavior of matplotlib. Please update.

from xrt.

leahwang1962 avatar leahwang1962 commented on June 25, 2024

It is the current version I am using. I just downloaded the zip file from here this afternoon.
image

from xrt.

kklmn avatar kklmn commented on June 25, 2024

No, you are not. The line "del graph.lines[:]" seen in the traceback is now commented out.

Do in your python session:

import xrt
print(xrt.__file__, xrt.__version__)

You will probably see an unexpected location.

from xrt.

leahwang1962 avatar leahwang1962 commented on June 25, 2024

Thanks.
After reinstall, I got the latest version 1.6.0 and the plot part is fine.
However there is another issue when the plot screen rotated 45 degree, or for other random orientation(no error if no rotation). It works fine at 1.4.0 version. Can you let me how I should modify the code? Greatly appreciate.
my code is like this:
beamLine.fsmMontelImage3 =rsc.Screen(beamLine, 'FSM-Montel', (0, p[0] + q[0], 0), (0.70711, 0, 0.707107),(-0.70711, 0, 0.707107))

image

from xrt.

kklmn avatar kklmn commented on June 25, 2024

Hi,
I've fixed this issue. The error is created during formatting a warning output. And the warning is about your x and z local vectors being not strictly orthogonal to each other, cf 0.70711 and 0.707107.
You may download the GH version or just rectify the screen's x and z.

from xrt.

leahwang1962 avatar leahwang1962 commented on June 25, 2024

Great. Thanks a lot.

from xrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.