Skip to content

Fix for issue4024 #4532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed

Fix for issue4024 #4532

wants to merge 11 commits into from

Conversation

mdehoon
Copy link
Contributor

@mdehoon mdehoon commented Jun 16, 2015

Fixes issue #4024 both for the MacOSX and the Cairo backends.

path_effects = textobj.get_path_effects()
if textobj.get_usetex():
ismath = "TeX"
path, transform = renderer._get_text_path_transform(x, y, clean_line, prop, angle, ismath)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8 is choking on this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I have modified the line to follow the PEP8 conventions.

-Michiel.


On Wed, 6/17/15, Thomas A Caswell notifications@github.com wrote:

Subject: Re: [matplotlib] Fix for issue4024 (#4532)
To: "matplotlib/matplotlib" matplotlib@noreply.github.com
Cc: "mdehoon" mjldehoon@yahoo.com
Date: Wednesday, June 17, 2015, 1:07 PM

In lib/matplotlib/text.py:

@@ -771,19 +774,23 @@ def
draw(self, renderer):
clean_line, ismath =
textobj.is_math_text(line)

             if textobj.get_path_effects():
  •                from matplotlib.patheffects import
    
    PathEffectRenderer

- textrenderer = PathEffectRenderer(

textobj.get_path_effects(), renderer)

  •                path_effects =
    
    textobj.get_path_effects()
  •                if textobj.get_usetex():
    
  •                    ismath = "TeX"
    
  •                path, transform =
    
    renderer._get_text_path_transform(x, y, clean_line, prop,
    angle, ismath)

pep8 is choking on this line.


Reply to this email directly or view
it on GitHub.

@tacaswell tacaswell added this to the next point release milestone Jun 17, 2015
@mdehoon
Copy link
Contributor Author

mdehoon commented Jun 17, 2015

I have modified the offending line to follow the PEP8 conventions.

@tacaswell
Copy link
Member

failure looks like a transient, kicked to restart

On Wed, Jun 17, 2015 at 10:37 AM mdehoon notifications@github.com wrote:

I have modified the offending line to follow the PEP8 conventions.


Reply to this email directly or view it on GitHub
#4532 (comment)
.

@@ -749,8 +750,10 @@ def draw(self, renderer):
if textobj._bbox_patch:
textobj._draw_bbox(renderer, posx, posy)

color = textobj.get_color()
color = colorConverter.to_rgb(color)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be to_rgba?

@tacaswell
Copy link
Member

I am still not sure I fully follow what is going on here, but isn't this treating the symptom and not the disease (which is PathEffectRenderer being broken)?

@tacaswell
Copy link
Member

See discussion at #4202

I am strongly 👎 on merging this as it working around a bug in some of the backends which is affecting the code paths of the rest of the backends in a way that makes the code more complex.

@efiring
Copy link
Member

efiring commented Jun 22, 2015

I'm closing this based on the discussion above and in #4202.

@efiring efiring closed this Jun 22, 2015
@mdehoon mdehoon deleted the fixForIssue4024 branch August 8, 2015 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants