Code Monkey home page Code Monkey logo

Comments (8)

glamp avatar glamp commented on September 27, 2024

Do you know how to fix it? If so, can you submit a PR?

On Wed, Oct 30, 2013 at 2:47 PM, Tyler Funnell [email protected]:

  • minor gridlines
  • grey borders when there should be none
  • outward facing major tick marks on left and bottom borders

The way themes are handled might need to be changed to allow theming of
some plot elements that aren't adjustable through rc params.


Reply to this email directly or view it on GitHubhttps://github.com//issues/85
.

from ggpy.

funnell avatar funnell commented on September 27, 2024

I can start something but I'm worried it might conflict with the work in #75

from ggpy.

jankatins avatar jankatins commented on September 27, 2024

Here are probably some hints how to implement that in rcparams: https://github.com/mwaskom/seaborn/blob/master/seaborn/rcmod.py

from ggpy.

jankatins avatar jankatins commented on September 27, 2024

Also here: https://github.com/wrobstory/climatic/blob/master/climatic/stylers.py

    #Only show bottom left ticks, pointing out of axis
    plt.rcParams['xtick.direction'] = 'out'
    plt.rcParams['ytick.direction'] = 'out'
    ax.xaxis.set_ticks_position('bottom')
    ax.yaxis.set_ticks_position('left')

If the last two methods are not available via rcParams, one way to implement this, would be to add a possibility for the themes to submit a callback which would then be called for each axis (see also #93)

from ggpy.

funnell avatar funnell commented on September 27, 2024

As far as I'm aware at least some of the styling options are not available via rcParams. I think a callback might be the best way to go about this.

from ggpy.

jankatins avatar jankatins commented on September 27, 2024

I added a commit to my theming branch, which implementes post_plot_callbacks: #75 -> last commit "Implement post plot callback for theming".

from ggpy.

jankatins avatar jankatins commented on September 27, 2024

Whats currently missing is minor gridlines.

from ggpy.

funnell avatar funnell commented on September 27, 2024

The last link you provided implements minor gridlines this way:

ax.xaxis.set_minor_locator(MultipleLocator( (plt.xticks()[0][1]-plt.xticks()[0][0]) / 2.0 ))
ax.yaxis.set_minor_locator(MultipleLocator( (plt.yticks()[0][1]-plt.yticks()[0][0]) / 2.0 ))

from ggpy.

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.