GithubHelp home page GithubHelp logo

Comments (3)

theengineear avatar theengineear commented on May 2, 2024

@guenp, this one i'll have to look into a little more, my gut feeling is that it's a plotly default thinking that there isn't enough room for the xaxis labels there, but it might also be in the python library. I'll give you a quick fix for this one:

fig = figure(figsize=(6,6))
for m in arange(0,len(data_IV_vs_T_vs_backgate)): 
    data = data_IV_vs_T_vs_backgate[m]
    [Rmatup, Vmatup, Imatup, Rmatdown, Vmatdown, Imatdown, T, B] = data
    ax = subplot(1,len(data_IV_vs_T_vs_backgate)+1,m+1)
    colormap = cm.jet
    colormap.set_gamma(1)
    color_cycle = [colormap(i) for i in np.linspace(0, 0.9, len(Rmatup))]
    ax.set_color_cycle(color_cycle)
    for (t,I,R) in zip(T, Imatup, Rmatup):
        label = 'T = ' + str(round(t*1e3)) + ' mK'
        plot(I,R,label=label)
    xlabel('$I_{dc} (A)$')
    ylabel('$R_{xx,ac} (\Omega)$')
    title(measnames[m])
width = 1000    # plot width in px
height = 500 # plot height in px
update = {"layout": {"xaxis1": {"tickangle": 0}, "xaxis2": {"tickangle": 0}}}
py.iplot_mpl(fig,
                  update=update,
                  filename='/superconductivity_XVII_LSM4_triton2/Rxxac_vs_Idc_vs_T_vs_Vbg',
                  width=width,
                  height=height)

from plotly.py.

theengineear avatar theengineear commented on May 2, 2024

again, thanks for these issue threads! always extremely helpful.

from plotly.py.

guenp avatar guenp commented on May 2, 2024

@theengineear thanks, this fixed my problem.

from plotly.py.

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.