As the title suggests, I have some trouble changing the marker style in some of the Yellowbrick plots. For instance, I know it is possible to do so for the ScatterVisualiser, but I would like to do the same for ValidationCurve also.
Is this possible?
Related
How can I retrieve the background color from a given control?
I'm looking for as general a solution as possible, including the default colors of a control. Is it possible to do this?
The closest I have gotten so far is the find of GetPixel(), but I realize it's far from a perfect solution. If I have text or something over the control -- that basically all controls have, it leads to the wrong result.
It seems not possible to view the exact margin between font-elements in XD (dev-view). Below you'll find a screenshot of a situation where we need to measure the exact distance between two Font-elements (XD developer-view).
It needs to bypass the line-height, but it doesn't. To be able to do this, we need the line-height to be zero. But when we edit the line-height in XD for a word or sentence on a single row, XD does not change that line-height.
Anybody encountered the same situation?
In this example the line-height is 32. We go to XD. Change it to zero, save it and SHARE FOR DEVELOPMENT. But the line-height remains 32. Also changing it to 1 instead of zero won't make any difference.
To fix this issue, you have to select the Text within Adobe XD. Right Click and select Path > Convert to Path. The margins around the Text will disappear and when in DEVELOPMENT view it becomes possible to see the right margin. A small problem remains. When you want to edit the text when it's a shape, you have to delete it and place a new text and turn it into a shape again. the text when converted to a shape
The default selector in Adobe XD will not give you the exact margin between two text. You have to convert the text layer into paths (Convert to Outlines) to get the exact margin.
But remember after converting text layer into path the text cannot be edited because now the letter are separate vector shapes.
To convert text layer into Path, select the layer and goto Object>Path>Click Convert to Path
You can use the Guides to drag one below your text and another one on top of the second text, and then you can see the distance between the 2 guides.
Check this youtube video for a quick tutorial on it. This is going to be a manual action. I don't think there's a key to press to check the distance automatically.
I'm using Visual Paradigm to draw my use-cases diagrams.
For nicer presentation, I want my all my use-cases to have the same shape. Instead of resizing them manually, I want to use the format copier to achieve this.
I followed the steps as explained here : https://www.visual-paradigm.com/support/documents/vpuserguide/1283/33/26921_formatcopier.html
Unfortunately, this doesn't seem to work.
Tested method:
Left-Click on the shape I want to copy format.
Left-Click on the "Format Copier" button in the menubar.
Left-Click on the use-case I want to apply copied format.
(Here's a short clip showing the manipulation : https://i.gyazo.com/41462b8cc0b4114be8c6ebe490fadab3.mp4)
It doesn't change anything and simply select the new shape I clicked without reformatting anything.
Is there another way to do this ? Or am I doing something wrong ?
The format copier is specific for copy the "styles and formatting" information, which are the fonts, foreground and background styles. For the size you can select multiple shapes on diagram then mouse over your selection to bring up the resource icons for setting the size of multiple elements at once.
I'm trying to change the letter spacing in a NSFont (such as Gill Sans). Is this possible or will I need to load my own custom font?
Though I suppose fonts might specify some kerning hints, kerning is really an attribute of rendered text. So the answer to your question depends on how you're going to render your text to the screen.
If you're using NSAttributedString, you can look at the NSKernAttributeName attribute (see the Constants section in the documentation. If you're using CoreText and CFAttributedString, you can look at the kCTKernAttributeName attribute (see the Constants section in the documentation.
If you're using something else to render text, then the answer (if there is one; not all text rendering methods support advanced customization) will be dependent on that something else.
So currently I am able to display images via URL's using QLabel, QNetworkManager and QPixmap. And then to display the image I use something like label->show(). Essentially I follow the same steps as in the pseudocode in this link:
http://developer.qt.nokia.com/forums/viewthread/7010
Now I am still somewhat new to Qt and am having difficulty extending this. What I want to do is be able to display multiple images from different URL's into essentially the same container. So basically I want to see two images in the same container/window. These images are specified by their width, height, x position and y position in the main window/container. I know that I should use widgets but I am not sure what exactly should I use? QFrame? QHBLayout? QScrollArea? etc. Any help would be appreciated.
You can use many QLabels inside a Layout to get the effect you want. The way you want to lay it out is up to you, and there's more than one layout manager. There's things like the grid layout, the box layout, etc. Have a look here for layouts. You can look at it in this simplified way:
One window has a layout and a layout has many items in it.
http://doc.qt.nokia.com/latest/layout.html
In reality widgets can contain many other widgets. To position them properly, you use the layout.